New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show notifications for replied messages and handle oreo quick reply actions #175
Show notifications for replied messages and handle oreo quick reply actions #175
Conversation
Hi @adeekshith Please check on your device, on mine somehow getting 2 replies. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commented items and multiple replies needs to be fixed
&& remoteInputs.size() == 0 ) { | ||
for(int x = 0; x < act.getRemoteInputs().length; x++) { | ||
RemoteInput remoteInput = act.getRemoteInputs()[x]; | ||
if((remoteInput.getResultKey().toLowerCase().contains("reply") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using English word "reply" may not work for other languages
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well actually i realised we dont need to check "reply" as remoteInput object is available only for reply action
…only available for reply action
…attach logs in mail
|
In the latest commit( 3b1a322 ) we have removed external storage permission and moved the logs write to internal storage |
Also keeping the notification after reply only seems to be working for Whatsapp |
Oh!, have to debug which reply intent it is taking |
I think manually replying to facebook via notification also dismisses it so not really app's fault |
@spuday90 conflicts |
@spuday90 strings.xml and arrays.xml needs to be checked too. they replaced strings in main branch if not conflicting. I doubt if this branch is even compiling |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-
Needs to be updated with latest "main" (merge/rebase)
-
Resolve conflicts with main
-
Fix strings.xml and arrays.xml if not already done
-
Remove logging to file code
-
Notification Setting
- Remove "Oreo+ only" if it works on previous ones also
- Move setting to "Settings activity"
- Change switch label to "Dismiss replied notifications"
- Remove help tip below the switch ("Turn On to dismiss...")
…ssue/134/autoreply-not-working-onfew-devices � Conflicts: � app/src/main/java/com/parishod/watomatic/NotificationService.java
Also clicking on Notification button is behaving like "Share" button. Is this happening only on mine? notification-btn-share.mp4 |
I completely removed share code in latest commit, so it should have crashed instead |
…for single message
…://github.com/adeekshith/watomatic into issue/134/autoreply-not-working-onfew-devices
app/src/main/res/values/strings.xml
Outdated
@@ -55,8 +55,17 @@ | |||
<string name="watomatic_github_url" translatable="false">https://github.com/adeekshith/watomatic</string> | |||
<string name="watomatic_wato_message_url" translatable="false">https://www.reddit.com/r/watomatic/comments/lrkn7j/fellow_watos_share_your_creative_wato_message/</string> | |||
|
|||
<!-- Share debug logs --> | |||
<string name="app_logs_file_name">WatomaticLogs.txt</string> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@spuday90 Mark all share debug logs as translatable="false"
app/src/main/res/values/strings.xml
Outdated
<!-- keys and app internal strings --> | ||
<string name="key_pref_app_language" translatable="false">pref_app_language</string> | ||
<string name="pref_show_notification" translatable="false">pref_show_notification</string> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pref_show_notification
-> pref_show_notification_replied_msg
for value to future proof (but optional)
@spuday90 Approved this but I am still seeing these:
I remember you fixing it before but not sure. If that is not fixed, we can merge this PR and file an issue. |
closes #189