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
{{ message }}
This repository was archived by the owner on Sep 4, 2020. It is now read-only.
Copy file name to clipboardExpand all lines: docs/API.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -122,7 +122,7 @@ Once set up the voip parameter to true, the rest of the options will be ignored.
122
122
123
123
You will also need to setup your app to receive `voip` messages in the apps pList. In your apps config.xml add the following in the `<platform name="ios">` tag. Only do this if you are setup to receive `voip` messages. If your app does not use `voip` messages the Apple App Store will reject your app.
As of version 2.0.0 the SENDER_ID parameter has been removed at install time. Instead you put your google-services.json (Android) and/or GoogleService-Info.plist in the root folder of your project and then add the following lines into your config.xml.
60
60
61
61
In the platform tag for Android add the following resource-file tag if you are using cordova-android 7.0 or greater:
By default, on iOS, the plugin will register with APNS. If you want to use FCM on iOS, in the platform tag for iOS add the resource-file tag:
78
78
79
-
```
79
+
```xml
80
80
<platformname="ios">
81
81
<resource-filesrc="GoogleService-Info.plist" />
82
82
</platform>
83
83
```
84
84
85
85
> Note: if you are using Ionic you may need to specify the SENDER_ID variable in your package.json.
86
86
87
-
```
87
+
```json
88
88
"cordovaPlugins": [
89
89
{
90
90
"locator": "phonegap-plugin-push"
@@ -94,7 +94,7 @@ By default, on iOS, the plugin will register with APNS. If you want to use FCM o
94
94
95
95
> Note: You need to specify the SENDER_ID variable in your config.xml if you plan on installing/restoring plugins using the prepare method. The prepare method will skip installing the plugin otherwise.
96
96
97
-
```
97
+
```xml
98
98
<pluginname="phonegap-plugin-push"spec="2.0.0" />
99
99
```
100
100
@@ -112,7 +112,7 @@ For more detailed instructions on how to install the Android Support Library vis
112
112
113
113
_Note:_ if you are using an IDE to like Eclipse, Xamarin, etc. then the Android SDK installed by those tools may not be the same version as the one used by the Cordova/PhoneGap CLI while building. Please make sure your command line tooling is up to date with the software versions above. An easy way to make sure you up to date is to run the following command:
114
114
115
-
```
115
+
```bash
116
116
android update sdk --no-ui --filter "extra"
117
117
```
118
118
@@ -122,13 +122,13 @@ There are a number of Cordova Facebook Plugins available but the one that we rec
@@ -306,7 +306,7 @@ Please run the command `pod repo update` and re-install the plugin. You would on
306
306
307
307
Running `pod setup` can take over 1 GB of disk space and that can take quite some time to download over a slow internet connection. If you are having issues with disk space/network try this neat hack from @VinceOPS.
@@ -344,7 +344,7 @@ module FirebaseInstanceID not found
344
344
345
345
You may be running into a bug in cordova-ios. The current workaround is to run `pod install` manually.
346
346
347
-
```
347
+
```bash
348
348
cd platforms/ios
349
349
pod install
350
350
```
@@ -355,15 +355,15 @@ The push plugin enables you to play sounds and display different icons during pu
355
355
356
356
You can now use the `resource-file` tag to deliver the image and sound files to your application. For example if you wanted to include an extra image file for only your Android build you would add the `resource-file` tag to your android `platform` tag:
0 commit comments