Replies: 1 comment
-
Can you clarify what you mean by |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I've got a really strange error that is literary driving me nuts.
I want to listen for background messages in my react-native application (expo bare workflow) and thus added messaging().setBackgroundMessageHandler in my index.js.
Everything works in debug mode but the listener is not triggered when I build the application with --variant=release.
I tried react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res which gives me no visible error. But it really seems like the index.js is not getting fired in the release mode for Android. iOS works like a charm.
I cleaned the project with gradle at least 100 times, expo publish 200 times and tried to upload the app to app store etc. etc. but nothing works.
The listener works if I put it in App.js, but ofcourse not when the app is killed and it is really important that the listener gets triggered all the time since I'm building a calling app.
index.js
setupAndroidNotifications function
Thanks,
Philip
Beta Was this translation helpful? Give feedback.
All reactions