You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Great installation and setup guide [https://medium.com/@felipepucinelli/how-to-add-push...](https://medium.com/@felipepucinelli/how-to-add-push-notifications-in-your-cordova-application-using-firebase-69fac067e821)
156
156
157
157
### Setup
158
158
159
159
Download your Firebase configuration files:
160
160
161
-
*`GoogleService-Info.plist` for iOS and
162
-
*`google-services.json` for Android
161
+
-`GoogleService-Info.plist` for iOS and
162
+
-`google-services.json` for Android
163
163
164
-
And place them in the root folder of your cordova project. Check out this [firebase article](https://support.google.com/firebase/answer/7015592)
164
+
And place them in the root folder of your Cordova app. Check out this [firebase article](https://support.google.com/firebase/answer/7015592)
165
165
for details on how to download the files.
166
166
167
167
```bash
@@ -175,22 +175,30 @@ for details on how to download the files.
175
175
...
176
176
```
177
177
178
-
###### IMPORTANT NOTES
178
+
### Important Notes
179
+
179
180
- This plugin uses a hook (after prepare) that copies the configuration files to the right place, namely
180
181
`platforms/ios/my-cordova-project/Resources` for iOS and `platforms/android` for Android.
181
182
- Firebase SDK requires the configuration files to be present and valid, otherwise your app will crash on boot or Firebase features won't work.
182
183
183
184
### PhoneGap Build
184
-
Hooks do not work with PhoneGap Build. This means you will have to manually make sure the configuration files are included. One way to do that is to make a private fork of this plugin and replace the placeholder config files (see `src/ios` and `src/android`) with your actual ones, as well as hard coding your app id and api key in `plugin.xml`.
185
+
186
+
Hooks do not work with PhoneGap Build. This means you will have to manually make sure the configuration files are included. One way to do
187
+
that is to make a private fork of this plugin and replace the placeholder config files (see `src/ios` and `src/android`) with your
188
+
actual ones, as well as hard coding your app id and api key in `plugin.xml`.
185
189
186
190
### Google Play Services
187
-
Your build may fail if you are installing multiple plugins that use Google Play Services. This is caused by the plugins installing different versions of the Google Play Services library. This can be resolved by installing [cordova-android-play-services-gradle-release](https://github.com/dpa99c/cordova-android-play-services-gradle-release).
191
+
Your build may fail if you are installing multiple plugins that use Google Play Services. This is caused by the plugins installing
192
+
different versions of the Google Play Services library. This can be resolved by installing
If your build is still failing, you can try installing [cordova-android-firebase-gradle-release](https://github.com/dpa99c/cordova-android-firebase-gradle-release). For more info, read the following [comment](https://github.com/dpa99c/cordova-plugin-request-location-accuracy/issues/50#issuecomment-390025013) about locking down the specific versions for play services and firebase. It is suggested to use `+` instead of `15.+` to ensure the correct versions are used.
195
+
If your build is still failing, you can try installing [cordova-android-firebase-gradle-release](https://github.com/dpa99c/cordova-android-firebase-gradle-release).
196
+
For more info, read the following [comment](https://github.com/dpa99c/cordova-plugin-request-location-accuracy/issues/50#issuecomment-390025013)
197
+
about locking down the specific versions for play services and firebase. It is suggested to use `+` instead of `15.+` to ensure the correct versions are used.
190
198
191
199
## Docs
192
200
193
-
### API
201
+
### API Docs
194
202
195
203
See the full [API](docs/API.md) docs available for this plugin.
0 commit comments