b8ne / react-native-pusher-push-notifications

Manage pusher interest subscriptions and notification events in Javascript.
MIT License
96 stars 85 forks source link

[Android 12?]Unable to open app after clicking on the notification #109

Open tigo0 opened 1 year ago

tigo0 commented 1 year ago

Hi.

When the app is closed and I receive a notification I get: Indirect notification activity start (trampoline) from com.xxx blocked.

My current setup looks like this:

Google didn't help so far. Please advise.

Arkan4ik commented 1 year ago

any update on this? have the same

pcarucci84tmb commented 1 year ago

@tigo0 @Arkan4ik i think that i resolved it...

add new line in AndroidManifest.xml (this line help for Android 13)

<manifest xmlns:android="http://schemas.android.com/apk/res/android">
    ...
    <uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
    ...
</manifest>
pcarucci84tmb commented 1 year ago

@tigo0 @Arkan4ik i think that i resolved it...

  • in your file app/build.gradle, replace firebase-messaging version and add new dependency
dependencies {
    ...
    implementation ("com.google.firebase:firebase-iid:21.1.0")
    implementation ("com.google.firebase:firebase-messaging:23.0.0")
    ...
}

add new line in AndroidManifest.xml (this line help for Android 13)

<manifest xmlns:android="http://schemas.android.com/apk/res/android">
    ...
    <uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
    ...
</manifest>

I can to confirm for me that these dependencies will be start push notification with Android version 12 and 13!!! @Arkan4ik did you try?

Arkan4ik commented 1 year ago

@pcarucci84tmb yes, thank you. interesting that I fixed it before read your comment today :) https://stackoverflow.com/a/73812652/6687637

Arkan4ik commented 1 year ago

@pcarucci84tmb maybe you have some suggestions, why ios push notifications on ios without sound? push notification come, but no sound. Will be very grateful for any suggestions