Skip to content

Commit

Permalink
Merge pull request #236 from intercom/skylerwshaw/migrate_to_cordova_…
Browse files Browse the repository at this point in the history
…android_7

Update to Cordova Android 7.0.0
  • Loading branch information
Skyler Shaw authored Jan 22, 2018
2 parents a655d9b + 3036620 commit 3d80f2c
Show file tree
Hide file tree
Showing 7 changed files with 568 additions and 25 deletions.
8 changes: 1 addition & 7 deletions Example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,11 @@ Before you run your app, you'll need to add your Intercom **AppID** and **API Ke
<preference name="intercom-android-api-key" value="YOUR_ANDROID_API_KEY"/>
```

If you want to enable Android FCM push notifications copy your `google-services.json` file into the `Example/` folder add this line to `config.xml`:
If you want to enable Android FCM/GCM push notifications copy your `google-services.json` file into the `Example/` folder add this line to `config.xml`:
```xml
<preference name="intercom-android-push-type" value="FCM"/>
```

If you want to enable Android GCM push notifications add these lines to `config.xml`, with your own sender_id:
```xml
<preference name="intercom-android-sender-id" value="YOUR_ANDROID_SENDER_ID"/>
<preference name="intercom-android-push-type" value="GCM"/>
```

## Running the app

To get started, add your platform(s) of choice:
Expand Down
23 changes: 9 additions & 14 deletions Example/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
Brian Boyle
</author>
<content src="index.html" />
<plugin name="cordova-plugin-whitelist" version="1.0.0" />
<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
Expand All @@ -18,7 +17,7 @@
<allow-intent href="geo:*" />
<platform name="android">
<allow-intent href="market:*" />
<preference name="android-minSdkVersion" value="15" />
<preference name="android-minSdkVersion" value="19" />
<icon density="hdpi" src="www/img/android/hdpi.png" />
<icon density="mdpi" src="www/img/android/mdpi.png" />
<icon density="xhdpi" src="www/img/android/xhdpi.png" />
Expand Down Expand Up @@ -53,20 +52,16 @@
<splash height="2208" src="www/img/launch/[email protected]" width="1242" />
<splash height="1242" src="www/img/launch/iPad_landscape_large.png" width="2208" />
</platform>
<preference name="intercom-app-id" value="YOUR_APP_ID" />
<preference name="intercom-ios-api-key" value="YOU_IOS_API_KEY" />
<preference name="intercom-android-api-key" value="YOUR_ANDROID_API_KEY" />

<preference name="intercom-app-id" value="YOUR_APP_ID"/>
<preference name="intercom-ios-api-key" value="YOU_IOS_API_KEY"/>
<preference name="intercom-android-api-key" value="YOUR_ANDROID_API_KEY"/>

<!--
<!--
Include this line if you wish to use FCM for Android push notifications
<preference name="intercom-android-push-type" value="FCM"/>
-->
<!--
Include these lines with your GCM sender id if you wish to use GCM for Android push notifications
<preference name="intercom-android-sender-id" value="YOUR_ANDROID_SENDER_ID"/>
<preference name="intercom-android-push-type" value="GCM"/>
<preference name="intercom-android-push-type" value="FCM" />
-->

<engine name="ios" spec="~4.5.2" />
<plugin name="cordova-plugin-whitelist" spec="1.0.0" />
<engine name="android" spec="^7.0.0" />
<engine name="ios" spec="^4.5.4" />
</widget>
Loading

0 comments on commit 3d80f2c

Please sign in to comment.