Open jasmin713 opened 7 months ago
@jasmin713 https://github.com/ben-xD/push/issues/50
I get this log output after I received push notification and app is terminated: ActivityManager: ANR in com.xxx.xxxx ActivityManager: PID: 16432 ActivityManager: Reason: Broadcast of Intent { act=com.google.android.c2dm.intent.RECEIVE flg=0x1000010 pkg=com.xxx.xxx cmp=com.xxx.xxx/uk.orth.push.FirebaseMessagingReceiver (has extras) }
This documentation helps to understand ANR relating to push notification, especially the section "Push notifications handling".
I think the code from the documentation can help, but not for me:
<service
android:name="com.google.firebase.messaging.FirebaseMessagingService"
android:exported="false"
android:process=":light"
tools:node="replace">
<intent-filter android:priority="-500">
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>
<receiver
android:name="com.google.firebase.iid.FirebaseInstanceIdReceiver"
android:exported="true"
android:permission="com.google.android.c2dm.permission.SEND"
android:process=":light"
tools:node="replace">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
</intent-filter>
</receiver>
Maybe can anybody help?
Hey @jasmin713, can you share your code? Do you also have firebase_messaging installed in the same app?
Hallo,
I implemented your plugin and all the needed code and callbacks to my project. All callbacks works for me. I received all notifications in foreground and background. My Problem is that after the app is terminated and I received the push notification Android show me the alert message "... isn't responding - Close app - Wait". With the other plugin firebase_messaging I get no alert message like that. So I think its a problem with your plugin or with my implementation. Do you know or think whats the problem of my implementation?
Thanks Regards Jasmin