-
Android app works in debug mode but crashes at the start when I build a release version. IOS app works fine. I debugged using the adb logcat command and have caught:
In short, the error message is: RNFBMessagingModule.getToken got 4 arguments, expected 2 I am using the getToken method as seen below:
Updated the rn-firebase packages to the latest but still did not work. I am completely lost at the moment. Do you have any suggestions? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
That is usually what happens when native code and javascript bundles are the wrong versions. |
Beta Was this translation helpful? Give feedback.
-
IMPORTANT EDIT: Okay, I just realised what you meant. Before running the assembleRelease; first I ran below and it worked! Thank you.
@mikehardy Sorry for the late reply. I am not sure that I understand what you meant. How can I be sure about what you suggest? Found a topic about cleaning the cache(?) here. Could you please tell me if any other way to do this? --- Edit --- I ran this command but did not work for me.
Also ran; And one more thing; I am generating the APK using the |
Beta Was this translation helpful? Give feedback.
That is usually what happens when native code and javascript bundles are the wrong versions.
Like, you have native react-native-firebase code built for 12.6.0 but react-native-firebase javascript from 12.7.x
I would make very very very sure that your build system is not incorrectly caching the output of some build step, in a fully clean build this should not be possible.