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

Isn't responding alert after push notification received #51

Open
jasmin713 opened this issue Feb 13, 2024 · 3 comments
Open

Isn't responding alert after push notification received #51

jasmin713 opened this issue Feb 13, 2024 · 3 comments

Comments

@jasmin713
Copy link

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

@javier-gantri
Copy link

@jasmin713 #50

@jasmin713
Copy link
Author

jasmin713 commented Feb 15, 2024

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?

@ben-xD
Copy link
Owner

ben-xD commented May 1, 2024

Hey @jasmin713, can you share your code? Do you also have firebase_messaging installed in the same app?

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

No branches or pull requests

3 participants