cordova-plugin-intercom
Advanced tools
Comparing version 3.0.11 to 3.0.13
# Intercom for Cordova/PhoneGap | ||
## 3.0.13 (2016-10-12) | ||
* Re-publish to npm to work around registry issue. | ||
## 3.0.12 (2016-10-10) | ||
* Added a new method `displayMessageComposerWithInitialMessage` which opens up the message composer and takes in a string to pre-populate the message composer with. Example usage `intercom.displayMessageComposerWithInitialMessage("Question asked from the FAQ page: ");` | ||
* Updated Intercom for Android to [3.0.10](https://github.com/intercom/intercom-android/releases/tag/3.0.10). | ||
* Updated Intercom for iOS to [3.0.13](https://github.com/intercom/intercom-ios/releases/tag/3.0.13). | ||
## 3.0.11 (2016-09-16) | ||
@@ -4,0 +14,0 @@ |
{ | ||
"name": "cordova-plugin-intercom", | ||
"version": "3.0.11", | ||
"version": "3.0.13", | ||
"description": "Official Cordova/PhoneGap plugin for Intercom", | ||
@@ -5,0 +5,0 @@ "cordova": { |
@@ -7,3 +7,3 @@ # Intercom for Cordova/PhoneGap | ||
Intercom for iOS supports iOS 8.x and iOS 9.x. Intercom for Android fully supports API 15 and above but can be integrated in app with API 9 (devices below API 15 will have no Intercom functionality). | ||
Intercom for iOS supports iOS 8.x, 9.x and iOS 10. Intercom for Android fully supports API 15 and above but can be integrated in app with API 9 (devices below API 15 will have no Intercom functionality). | ||
@@ -22,4 +22,4 @@ ## Installation | ||
<plugin name="cordova-plugin-intercom" version="~3.0.11" /> | ||
<plugin name="cordova-plugin-intercom" version="~3.0.13" /> | ||
## Configuring Intercom | ||
@@ -69,3 +69,3 @@ | ||
2. Also, in your app's `onDeviceReady` function (or wherever you _check_ your user's authenticated state when your app starts up) | ||
2. Also, in your app's `onDeviceReady` function (or wherever you _check_ your user's authenticated state when your app starts up) | ||
@@ -77,3 +77,3 @@ onDeviceReady: function() { | ||
intercom.registerIdentifiedUser({userId: "123456"}); | ||
// Carry on as normal | ||
@@ -83,3 +83,3 @@ ... | ||
} | ||
3. Finally, when users eventually want to log out of your app, we should clear Intercom's local caches so that when they log back in again, everything works perfectly. In your logout code, simply call `intercom.reset();` like so: | ||
@@ -103,3 +103,3 @@ | ||
} | ||
Because Intercom listens for life cycle events, there is no need to have this line of code anywhere else. Intercom will track all of your user sessions for you. | ||
@@ -119,3 +119,3 @@ | ||
2. Also, in your app's `onDeviceReady` function (or wherever you _check_ your user's authenticated state when your app starts up) | ||
2. Also, in your app's `onDeviceReady` function (or wherever you _check_ your user's authenticated state when your app starts up) | ||
@@ -134,3 +134,3 @@ onDeviceReady: function() { | ||
} | ||
3. Finally, when users eventually want to log out of your app, we should clear Intercom's local caches so that when they log back in again, everything works perfectly. In your logout code, simply call `intercom.reset();` like so: | ||
@@ -153,3 +153,3 @@ | ||
2. Intercom for mobile listens for when your app starts and stops, so all you need to do is register a type of user like the examples above and we'll do the rest. | ||
## How does the in-app messenger work? | ||
@@ -166,3 +166,3 @@ | ||
intercom.updateUser({ email: "joe@example.com", name: @"Joe" }); | ||
Details of the attributes that can be updated are available [here](https://doc.intercom.io/api/#user-model). | ||
@@ -212,3 +212,3 @@ | ||
You can find more detailed documentation about Intercom for mobile [here](https://docs.intercom.com/help-and-faqs/mobile/how-does-intercom-work-on-my-mobile-product). | ||
You can find more detailed documentation about Intercom for mobile [here](https://docs.intercom.com/configure-intercom-for-your-product-or-site#configure-intercom-for-mobile). | ||
@@ -215,0 +215,0 @@ ## Thanks |
@@ -34,2 +34,6 @@ var intercom = { | ||
displayMessageComposerWithInitialMessage: function(initialMessage, success, error) { | ||
cordova.exec(success, error, 'Intercom', 'displayMessageComposerWithInitialMessage', [initialMessage]); | ||
}, | ||
displayConversationsList: function(success, error) { | ||
@@ -54,2 +58,6 @@ cordova.exec(success, error, 'Intercom', 'displayConversationsList', []); | ||
hideMessenger: function(success, error) { | ||
cordova.exec(success, error, 'Intercom', 'hideMessenger', []); | ||
}, | ||
registerForPush: function(success, error) { | ||
@@ -56,0 +64,0 @@ cordova.exec(success, error, 'Intercom', 'registerForPush', []); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40217682
145
214
1