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

Commit

Permalink
Issue #492: GoogleService failed to initialize
Browse files Browse the repository at this point in the history
  • Loading branch information
macdonst committed Jan 14, 2016
1 parent f598096 commit 313a805
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs/INSTALLATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,28 @@
This requires phonegap/cordova CLI 5.0+ ( current stable v1.5.3 )

```
phonegap plugin add phonegap-plugin-push
phonegap plugin add phonegap-plugin-push --variable SENDER_ID="XXXXXXX"
```
or

```
cordova plugin add phonegap-plugin-push
cordova plugin add phonegap-plugin-push --variable SENDER_ID="XXXXXXX"
```

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

```
phonegap plugin add https://github.com/phonegap/phonegap-plugin-push
phonegap plugin add https://github.com/phonegap/phonegap-plugin-push --variable SENDER_ID="XXXXXXX"
```

or

```
cordova plugin add https://github.com/phonegap/phonegap-plugin-push
cordova plugin add https://github.com/phonegap/phonegap-plugin-push --variable SENDER_ID="XXXXXXX"
```

Where the `XXXXXXX` in `SENDER_ID="XXXXXXX"` maps to the project number in the Google Developer Console. If you are not creating an Android application you can put in anything for this value.

## Android details

### Compilation
Expand Down
6 changes: 6 additions & 0 deletions plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
<engine name="cordova-android" version=">=4.0.0" />
</engines>

<preference name="SENDER_ID" />

<!-- android -->
<platform name="android">

Expand All @@ -34,6 +36,10 @@
</feature>
</config-file>

<config-file target="res/values/strings.xml" parent="/resources">
<string name="google_app_id">$SENDER_ID</string>
</config-file>

<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Expand Down

0 comments on commit 313a805

Please sign in to comment.