Skip to content
This repository was archived by the owner on Sep 4, 2020. It is now read-only.

Commit 532be4b

Browse files
pataarjcesarmobile
authored andcommitted
Add missing syntax highlighting to docs (#2573)
1 parent 7bde3b4 commit 532be4b

File tree

3 files changed

+20
-20
lines changed

3 files changed

+20
-20
lines changed

docs/API.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ Once set up the voip parameter to true, the rest of the options will be ignored.
122122

123123
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.
124124

125-
```
125+
```xml
126126
<config-file target="*-Info.plist" parent="UIBackgroundModes">
127127
<array>
128128
<string>voip</string>

docs/INSTALLATION.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,57 +34,57 @@
3434

3535
To install from the command line:
3636

37-
```
37+
```bash
3838
phonegap plugin add phonegap-plugin-push
3939
```
4040

4141
or
4242

43-
```
43+
```bash
4444
cordova plugin add phonegap-plugin-push
4545
```
4646

4747
It is also possible to install via repo url directly ( unstable )
4848

49-
```
49+
```bash
5050
phonegap plugin add https://github.com/phonegap/phonegap-plugin-push
5151
```
5252

5353
or
5454

55-
```
55+
```bash
5656
cordova plugin add https://github.com/phonegap/phonegap-plugin-push
5757
```
5858

5959
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.
6060

6161
In the platform tag for Android add the following resource-file tag if you are using cordova-android 7.0 or greater:
6262

63-
```
63+
```xml
6464
<platform name="android">
6565
<resource-file src="google-services.json" target="app/google-services.json" />
6666
</platform>
6767
```
6868

6969
If you are using cordova-android 6.x or earlier, add the following resource-file tag:
7070

71-
```
71+
```xml
7272
<platform name="android">
7373
<resource-file src="google-services.json" target="google-services.json" />
7474
</platform>
7575
```
7676

7777
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:
7878

79-
```
79+
```xml
8080
<platform name="ios">
8181
<resource-file src="GoogleService-Info.plist" />
8282
</platform>
8383
```
8484

8585
> Note: if you are using Ionic you may need to specify the SENDER_ID variable in your package.json.
8686
87-
```
87+
```json
8888
"cordovaPlugins": [
8989
{
9090
"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
9494

9595
> 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.
9696
97-
```
97+
```xml
9898
<plugin name="phonegap-plugin-push" spec="2.0.0" />
9999
```
100100

@@ -112,7 +112,7 @@ For more detailed instructions on how to install the Android Support Library vis
112112

113113
_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:
114114

115-
```
115+
```bash
116116
android update sdk --no-ui --filter "extra"
117117
```
118118

@@ -122,13 +122,13 @@ There are a number of Cordova Facebook Plugins available but the one that we rec
122122

123123
To add to your app:
124124

125-
```
125+
```bash
126126
phonegap plugin add --save cordova-plugin-facebook4 --variable APP_ID="App ID" --variable APP_NAME="App Name"
127127
```
128128

129129
or
130130

131-
```
131+
```bash
132132
cordova plugin add --save cordova-plugin-facebook4 --variable APP_ID="App ID" --variable APP_NAME="App Name"
133133
```
134134

@@ -279,7 +279,7 @@ If you are on a `cordova-cli` version less than `6.1.0`, you will either have to
279279

280280
i.e.
281281

282-
```
282+
```bash
283283
cordova plugin add [email protected]
284284
```
285285

@@ -306,7 +306,7 @@ Please run the command `pod repo update` and re-install the plugin. You would on
306306

307307
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.
308308

309-
```
309+
```bash
310310
git clone --verbose --depth=1 https://github.com/CocoaPods/Specs.git ~/.cocoapods/repos/master
311311
pod setup --verbose
312312
```
@@ -344,7 +344,7 @@ module FirebaseInstanceID not found
344344

345345
You may be running into a bug in cordova-ios. The current workaround is to run `pod install` manually.
346346

347-
```
347+
```bash
348348
cd platforms/ios
349349
pod install
350350
```
@@ -355,15 +355,15 @@ The push plugin enables you to play sounds and display different icons during pu
355355

356356
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:
357357

358-
```
358+
```xml
359359
<platform name="android">
360360
<resource-file src="myImage.png" target="res/drawable/myImage.png" />
361361
</platform>
362362
```
363363

364364
or if you wanted to include a sound file for iOS:
365365

366-
```
366+
```xml
367367
<platform name="ios">
368368
<resource-file src="mySound.caf" />
369369
</platform>

docs/PHONEGAP_BUILD.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,15 @@ Users have reported issues with Ionic Cloud Build. Apparently there are some dif
9797

9898
1. Remove the inclusion of `phonegap-plugin-push` from config.xml. That is delete lines that look like this:
9999

100-
```
100+
```xml
101101
<plugin name="phonegap-plugin-push" spec="~1.9.1">
102102
<variable name="SENDER_ID" value="xxx"/>
103103
</plugin>
104104
```
105105

106106
2. Add the following lines into `package.json` in the `cordovaPlugins` array.
107107

108-
```
108+
```json
109109
{
110110
"variables": {
111111
"SENDER_ID": "xxx"

0 commit comments

Comments
 (0)