-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
75ca709
commit cfb9bf7
Showing
1 changed file
with
34 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,14 +2,14 @@ | |
|
||
Integrate Intercom.io with Appcelerator. iOS module available here https://github.com/markive/TiIntercom . Tested with 5.1.1GA SDK | ||
|
||
Example | ||
### Example | ||
``` | ||
var TiIntercom = require('intercom'); | ||
TiIntercom.initialize(<API KEY>,<APP ID>); | ||
TiIntercom.startSession("[email protected]"); | ||
``` | ||
|
||
/lib/intercom.js | ||
### /lib/intercom.js | ||
``` | ||
var TiIntercom = require('ti.intercom.android'); | ||
|
@@ -47,14 +47,43 @@ exports.setDeviceToken = function(token, appicon /* 'device-token', Ti.App.Andro | |
``` | ||
|
||
Author | ||
======== | ||
### tiapp.xml changes for Android GCM support | ||
``` | ||
<android xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<manifest> | ||
<application> | ||
<service | ||
android:name="io.intercom.android.sdk.gcm.GcmIntentService" | ||
android:enabled="false" /> | ||
<!-- GCM setup --> | ||
<receiver | ||
android:name="io.intercom.android.sdk.gcm.GcmBroadcastReceiver" | ||
android:enabled="false" | ||
android:permission="com.google.android.c2dm.permission.SEND" > | ||
<intent-filter> | ||
<action android:name="com.google.android.c2dm.intent.RECEIVE" /> | ||
<action android:name="com.google.android.c2dm.intent.REGISTRATION" /> | ||
<category android:name="io.intercom.intercomsdk.gcm" /> | ||
</intent-filter> | ||
</receiver> | ||
<meta-data | ||
android:name="com.google.android.gms.version" | ||
android:value="@integer/google_play_services_version" /> | ||
</application> | ||
</manifest> | ||
</android> | ||
``` | ||
|
||
#### Author | ||
Jerod | ||
([email protected]) | ||
|
||
|
||
## License | ||
#### License | ||
|
||
The MIT License (MIT) Copyright © 2015 | ||
|
||
|