Closed ikruze closed 1 year ago
Please verify the json folder: https://github.com/hansemannn/titanium-firebase#installation
Download the google-services.json and copy it to [application_name]/platform/android/ (classic) or [application_name]/app/platform/android/ (Alloy)
Quick note about the log:
It just checks if there was an intent and since there isn't in this case it will show the debug log
Man, thanks!!! this was the solution, you made my day!!!
[application_name]/platform/android/
no problem! Since Titanium uses gradle (Ti 9) it will automatically find and use the file in those folders
Hi, I'm trying to register for Push Notifications for Android (iOS works fine!) but there is no response from FCM, when I execute FirebaseCloudMessaging.registerForPushNotifications() I see this debug message:
FirebaseCloudMessaging: (main) [20297,22063] Empty notification in Intent
And there is no response back from the registration
I've tried with Titanium SDK 12.0.0.GA, 11.1.1.GA and now 12.1.0.v20230224211003, always the same. Also disabled Firebase Core module for Android and this are the versions of the other modules I'm using:
ti.playservices 18.2.0 firebase.cloudmessaging 3.3.1 firebase.analytics 5.1.0
Google Play Services is enabled and the versión listed in the debug is 12451000
In my Firebase console I've configured the Android project adding both SHA1 and SHA256 signatures for the APK that are generated (debug and production, even the signed by Google Play). Downloaded that google-services.json and placed in my project Resources folder and even inside the Resources/Android folder.
My google-services.json file looks like this:
My production app SHA1 signature is the one starting with 47:AF and the debug one starts with CC:E3
Finally, my code runs at the first Window creation and it's based on your documentation:
After FirebaseCloudMessaging.registerForPushNotifications(); I have no more response!, one year ago it worked fine with other apps but now I don't know what else to check out since I've looked everything, I will appreciate your help with it