Closed jlugner closed 8 years ago
Do you have android/app/google-services.json
file?
Yes. I'm not sure how to validate that it's correct, but it is there.
Please try this solution.
Or, delete android/build
and android/app/build
directories and re-run.
The last solution is finding project_number
in android/app/google-services.json
(eg 309660514018
in TestGcm project), and hard code the projectNumber
in line 30 of node_modules/react-native-gcm-android/android/src/main/java/com/oney/gcm/GcmRegistrationService.java
// int resourceId = resources.getIdentifier("gcm_defaultSenderId", "string", packageName);
// String projectNumber = getString(resourceId);
String projectNumber = "309660514018";
@oney First suggested solution worked well, thanks! Closing.
I'm getting the following exception when trying to add an event lister for 'register' events. Any ideas?