-
Notifications
You must be signed in to change notification settings - Fork 11
How to use Google Services Gradle plugin
Alexander Boldyrev edited this page Nov 8, 2022
·
1 revision
In order to use Google Services Gradle Plugin and google-services.json
file:
- Check if you have
ANDROID_FIREBASE_SENDER_ID
variable added toconfig.xml
for Mobile Messaging plugin:<plugin name="com-infobip-plugins-mobilemessaging" spec="..."> <variable name="ANDROID_FIREBASE_SENDER_ID" value="Firebase Sender ID" /> </plugin>
If
ANDROID_FIREBASE_SENDER_ID
was added previously, verify that there is nogoogle_app_id
in/platforms/android/app/src/main/res/values/strings.xml
. Ifgoogle_app_id
is present, delete it.
- Сopy-paste
google-services.json
file toplatforms/android/app
, make sure that package name in the file matches the application package name. - Add preference
GradlePluginGoogleServicesEnabled
with valuetrue
to theconfig.xml
file, as described in Cordova 9.0.0 announcement<config-file target="config.xml" parent="/*"> <preference name="GradlePluginGoogleServicesEnabled" value="true" /> </config-file>
- Run
cordova prepare android
If you have any questions or suggestions, feel free to send an email to support@infobip.com or create an issue.
- Library events
- Server errors
- Users and installations
- Messages and notifications management
- Inbox
- Geofencing
- Privacy settings
- In-app chat
- Migration guides
- Troubleshooting