Skip to content
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

Remove whatsapp original notification and enable notification for new installs #228

Merged
merged 7 commits into from
Apr 26, 2021

Conversation

adeekshith
Copy link
Owner

  • Remove whatsapp original notification by disabling oreo quick reply
  • Enable notification for new installs
  • Fix icon to show larger in notification tray

photo5490439587525404588

fix #222

@adeekshith
Copy link
Owner Author

adeekshith commented Apr 26, 2021

Error when clicked on Watomatic generate notification on real device Samsung S10+:

E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.parishod.watomatic, PID: 1878
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.parishod.watomatic/com.parishod.watomatic.activity.notification.NotificationIntentActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Intent android.content.Intent.addFlags(int)' on a null object reference
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3792)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3968)
        at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2307)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:246)
        at android.app.ActivityThread.main(ActivityThread.java:8512)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
     Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Intent android.content.Intent.addFlags(int)' on a null object reference
        at com.parishod.watomatic.activity.notification.NotificationIntentActivity.launchApp(NotificationIntentActivity.java:36)
        at com.parishod.watomatic.activity.notification.NotificationIntentActivity.onCreate(NotificationIntentActivity.java:26)
        at android.app.Activity.performCreate(Activity.java:8198)
        at android.app.Activity.performCreate(Activity.java:8182)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3765)

Edit:
Fixed by 297f2bd

@adeekshith adeekshith merged commit c8c3718 into main Apr 26, 2021
@adeekshith adeekshith deleted the issue/222/remove-whatsapp-original-notification-2 branch April 26, 2021 03:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Both watomatic's and Whatsapp original notification are being shown if notification setting is ON
2 participants