diff --git a/CHANGELOG.md b/CHANGELOG.md
index 23cabd9..0b564b8 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,21 @@
# Intercom for Cordova/PhoneGap
+## 6.1.0 (2018-07-20)
+
+**Enable mobile users to help themselves with the new mobile SDK for iOS and Android 🎉 😃**
+
+The new Intercom mobile SDK brings the Messenger Home to your mobile applications. This means you can add messenger apps that allow your users to self-serve instead of starting a conversation. Users can now quickly access relevant help articles, review pinned content, and view product status in real time – all from the messenger home screen.
+
+![android-release-screens](https://user-images.githubusercontent.com/2615468/42951497-316de29a-8b6e-11e8-8ed8-a0a3a93f6f4f.png)
+
+![ios-release-screens](https://user-images.githubusercontent.com/3185423/42937925-71ab4b5c-8b48-11e8-913b-88d48c9b82f3.png)
+
+**API changes**
+
+* `displayConversationsList` - Use `displayMessenger` instead.
+
+These deprecated methods will still work, but will be removed in a future release.
+
## 6.0.0 (2018-06-12)
The Business Messenger reimagined.
diff --git a/README.md b/README.md
index 09e4954..f5a8e21 100644
--- a/README.md
+++ b/README.md
@@ -22,7 +22,7 @@ cordova plugin add cordova-plugin-intercom
To add the plugin to your PhoneGap app, add the following to your `config.xml`:
```xml
-
+
```
### Ionic
diff --git a/intercom-plugin/package.json b/intercom-plugin/package.json
index f5d9a4e..ffa23e8 100644
--- a/intercom-plugin/package.json
+++ b/intercom-plugin/package.json
@@ -1,6 +1,6 @@
{
"name": "cordova-plugin-intercom",
- "version": "6.0.0",
+ "version": "6.1.0",
"description": "Official Cordova/PhoneGap plugin for Intercom",
"cordova": {
"id": "cordova-plugin-intercom",
diff --git a/intercom-plugin/plugin.xml b/intercom-plugin/plugin.xml
index 0a0504b..6b760ba 100644
--- a/intercom-plugin/plugin.xml
+++ b/intercom-plugin/plugin.xml
@@ -1,5 +1,5 @@
-
+
Intercom
Intercom
MIT License
@@ -47,7 +47,7 @@
-
+
diff --git a/intercom-plugin/src/android/IntercomBridge.java b/intercom-plugin/src/android/IntercomBridge.java
index dd79725..cd2b5b6 100644
--- a/intercom-plugin/src/android/IntercomBridge.java
+++ b/intercom-plugin/src/android/IntercomBridge.java
@@ -59,7 +59,7 @@ private void setUpIntercom() {
try {
Context context = cordova.getActivity().getApplicationContext();
- CordovaHeaderInterceptor.setCordovaVersion(context, "5.1.1");
+ CordovaHeaderInterceptor.setCordovaVersion(context, "6.1.0");
switch (IntercomPushManager.getInstalledModuleType()) {
case GCM: {
@@ -185,7 +185,8 @@ private enum Action {
},
displayConversationsList {
@Override void performAction(JSONArray args, CallbackContext callbackContext, CordovaInterface cordova) {
- Intercom.client().displayConversationsList();
+ LumberMill.getLogger().w("displayConversationsList is deprecated. Please use displayMessenger instead.");
+ Intercom.client().displayMessenger();
callbackContext.success();
}
},
diff --git a/intercom-plugin/src/android/intercom.gradle b/intercom-plugin/src/android/intercom.gradle
index 95f30be..147a9a7 100644
--- a/intercom-plugin/src/android/intercom.gradle
+++ b/intercom-plugin/src/android/intercom.gradle
@@ -26,12 +26,12 @@ repositories {
}
dependencies {
- compile 'io.intercom.android:intercom-sdk-base:5.0.+'
+ compile 'io.intercom.android:intercom-sdk-base:5.1.+'
if (pushType == 'gcm') {
- compile 'io.intercom.android:intercom-sdk-gcm:5.0.+'
+ compile 'io.intercom.android:intercom-sdk-gcm:5.1.+'
} else if (pushType == 'fcm' || pushType == 'fcm-without-build-plugin') {
compile 'com.google.firebase:firebase-messaging:11.+'
- compile 'io.intercom.android:intercom-sdk-fcm:5.0.+'
+ compile 'io.intercom.android:intercom-sdk-fcm:5.1.+'
}
}
diff --git a/intercom-plugin/src/ios/IntercomBridge.m b/intercom-plugin/src/ios/IntercomBridge.m
index e04f334..2a54d22 100644
--- a/intercom-plugin/src/ios/IntercomBridge.m
+++ b/intercom-plugin/src/ios/IntercomBridge.m
@@ -9,7 +9,7 @@ + (void)setCordovaVersion:(NSString *)v;
@implementation IntercomBridge : CDVPlugin
- (void)pluginInitialize {
- [Intercom setCordovaVersion:@"5.1.1"];
+ [Intercom setCordovaVersion:@"6.1.0"];
#ifdef DEBUG
[Intercom enableLogging];
#endif
@@ -93,18 +93,19 @@ - (void)displayMessenger:(CDVInvokedUrlCommand*)command {
}
- (void)displayMessageComposer:(CDVInvokedUrlCommand*)command {
- [Intercom presentMessageComposer];
+ [Intercom presentMessageComposer:nil];
[self sendSuccess:command];
}
- (void)displayMessageComposerWithInitialMessage:(CDVInvokedUrlCommand*)command {
NSString *initialMessage = command.arguments[0];
- [Intercom presentMessageComposerWithInitialMessage:initialMessage];
+ [Intercom presentMessageComposer:initialMessage];
[self sendSuccess:command];
}
- (void)displayConversationsList:(CDVInvokedUrlCommand*)command {
- [Intercom presentConversationList];
+ NSLog(@"[Intercom-Cordova] WARNING - displayConversationsList is deprecated. Please use displayMessenger instead.");
+ [Intercom presentMessenger];
[self sendSuccess:command];
}