-
Hello, Error
To Reproduce ( this is using Ionic 6 )
ionic start TEST --type angular --package-id=com.test.app blank
cd TEST
ionic cap add android
npm install cordova-background-geolocation-plugin
// apply this fix required for ionic 6 : https://github.com/HaylLtd/cordova-background-geolocation-plugin/issues/122#issuecomment-1271553737
// in android/app/src/main/res/values/strings.xml, add the following:
// <string name="plugin_bgloc_account_name">@string/app_name</string>
// <string name="plugin_bgloc_content_authority">$PACKAGE_NAME</string>
// <string name="plugin_bgloc_account_type">$PACKAGE_NAME.account</string>
// compile test before installing second plugin
ionic cap sync && cd android && gradlew assembleDebug && cd ..
npm install onesignal-cordova-plugin
// compile test
ionic cap sync && cd android && gradlew assembleDebug && cd ..
// or open on android studio with:
ionic cap sync && ionic capacitor run android -l --external Desktop (please complete the following information):
Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
Please add gms services in your build gradle like the following. |
Beta Was this translation helpful? Give feedback.
-
hello! any updates on this? |
Beta Was this translation helpful? Give feedback.
-
I finally fixed the problem changing the default GOOGLE_PLAY_SERVICES_VERSION from 11+ to 15+ here : .Thank you |
Beta Was this translation helpful? Give feedback.
I finally fixed the problem changing the default GOOGLE_PLAY_SERVICES_VERSION from 11+ to 15+ here :
cordova-background-geolocation-plugin/plugin.xml
Line 27 in 033ee47
Thank you