From 75f8f7d5b9af5876bc93f7aa14c4716938e2e8f1 Mon Sep 17 00:00:00 2001 From: Mike McNamara Date: Wed, 30 Mar 2022 16:47:15 +0100 Subject: [PATCH 1/3] - Updated to use Intercom version 12.0.0 for both Android and iOS. - Updated CHANGELOG and README to reflect the update. --- CHANGELOG.md | 32 +++++++++++++++++++ README.md | 2 +- intercom-plugin/package.json | 2 +- intercom-plugin/plugin.xml | 4 +-- .../src/android/IntercomBridge.java | 2 +- intercom-plugin/src/android/intercom.gradle | 4 +-- intercom-plugin/src/ios/IntercomBridge.m | 2 +- 7 files changed, 40 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2515b34..eaf351f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,37 @@ # Intercom for Cordova/PhoneGap +## 12.0.0 (2022-03-30) +#### v12.0.0 of the Cordova plugin supports the latest version (12.0.0) of the Intercom mobile SDK. +##### 🚀 Enhancements + +**In v12.0.0 of the Intercom mobile SDK, we’re introducing Intercom Surveys — beautiful native in-product surveys to bring all your customer communication to one platform!!** + +![Intercom Surveys Introduction](https://user-images.githubusercontent.com/6392766/159682454-25995724-68f7-4201-a6c2-5b1bffe11ed1.png) + +**📱 New feature: Intercom Surveys** + +👋🏼 Meet Intercom Surveys - Don’t just ask their opinion, act on it. Now, you can seamlessly capture and act on customer feedback and needs, all within Intercom. Intercom Surveys makes it quick and easy to create and send highly targeted, easily customisable in-product native survey - across web and mobile. + +* Choose the relevant question type from multitude of question types available like rating scales (NPS, emoji, star), multiple-choice, dropdown and more +* Customise the color of your survey’s background and buttons +* Target the right survey to the right audience at the right time +* Save survey responses as user attributes to drive follow up actions +* Add a customisable intro and thank you message +* Decide whether or not users should be able to dismiss the survey +* Encourage further user actions by inserting a call-to-action button in the thank you message with a link (external URL or deep link) +* Leverage email and mobile push as fallback channels if in-product doesn’t get you a response +* Many more ways to customise your survey — show or hide avatar of survey sender, format survey text and insert user or company attributes in text +* Use the power of Intercom platform — A/B testing and control groups, goal tracking, orchestrating surveys as a part of series, analysing and exporting results as CSV + +👉 You will need to start a 14 day free trial or purchase the Surveys Add-On starting from $49 per month in order to set a survey live +👉 Upgrade to the latest version of the mobile SDK today to use the feature on mobile. No additional integration work required. + +[Learn more about Intercom Surveys](https://www.intercom.com/surveys) + +https://user-images.githubusercontent.com/3718984/159649798-a255ab7a-df79-4015-875c-399872e6186c.mp4 + +https://user-images.githubusercontent.com/6392766/159682983-e13d3080-8025-4f90-9a75-14f41b81a5bc.mp4 + ## 11.0.0 (2022-01-13) * The Intercom Cordova plugin has been updated to use the latest version of the Intercom iOS (v11.0.0) and Android SDK (v10.6.0) * The minimum deployment version for iOS is now iOS 13. diff --git a/README.md b/README.md index c32ea36..8f9a79c 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ cordova plugin add cordova-plugin-intercom To add the plugin to your PhoneGap app, add the following to your `config.xml`: ```xml - + ``` ## Example App diff --git a/intercom-plugin/package.json b/intercom-plugin/package.json index 6d9cd72..6fb20e8 100644 --- a/intercom-plugin/package.json +++ b/intercom-plugin/package.json @@ -1,6 +1,6 @@ { "name": "cordova-plugin-intercom", - "version": "11.1.0", + "version": "12.0.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 2c7d8e0..7eb89ab 100644 --- a/intercom-plugin/plugin.xml +++ b/intercom-plugin/plugin.xml @@ -1,5 +1,5 @@ - + Intercom Intercom MIT License @@ -62,7 +62,7 @@ - + diff --git a/intercom-plugin/src/android/IntercomBridge.java b/intercom-plugin/src/android/IntercomBridge.java index 89b0250..8f2af5e 100644 --- a/intercom-plugin/src/android/IntercomBridge.java +++ b/intercom-plugin/src/android/IntercomBridge.java @@ -70,7 +70,7 @@ private void setUpIntercom() { try { Context context = cordova.getActivity().getApplicationContext(); - CordovaHeaderInterceptor.setCordovaVersion(context, "11.0.0"); + CordovaHeaderInterceptor.setCordovaVersion(context, "12.0.0"); switch (IntercomPushManager.getInstalledModuleType()) { case FCM: { diff --git a/intercom-plugin/src/android/intercom.gradle b/intercom-plugin/src/android/intercom.gradle index cc84585..211a9a8 100644 --- a/intercom-plugin/src/android/intercom.gradle +++ b/intercom-plugin/src/android/intercom.gradle @@ -28,14 +28,14 @@ repositories { } dependencies { - implementation 'io.intercom.android:intercom-sdk-base:10.7.0' + implementation 'io.intercom.android:intercom-sdk-base:12.0.0' implementation 'com.google.code.gson:gson:2.8.6' implementation 'com.intercom:twig:1.3.0' implementation 'org.jetbrains:annotations:13.0' implementation 'com.squareup.okhttp3:okhttp:4.9.0' if (pushType == 'fcm' || pushType == 'fcm-without-build-plugin') { implementation 'com.google.firebase:firebase-messaging:20.+' - implementation 'io.intercom.android:intercom-sdk-fcm:10.7.0' + implementation 'io.intercom.android:intercom-sdk-fcm:12.0.0' } } diff --git a/intercom-plugin/src/ios/IntercomBridge.m b/intercom-plugin/src/ios/IntercomBridge.m index 7a1a751..4dae519 100644 --- a/intercom-plugin/src/ios/IntercomBridge.m +++ b/intercom-plugin/src/ios/IntercomBridge.m @@ -12,7 +12,7 @@ + (void)setCordovaVersion:(NSString *)v; @implementation IntercomBridge : CDVPlugin - (void)pluginInitialize { - [Intercom setCordovaVersion:@"11.0.0"]; + [Intercom setCordovaVersion:@"12.0.0"]; #ifdef DEBUG [Intercom enableLogging]; #endif From 769b892fa5056f266c41dce94295391e320fee68 Mon Sep 17 00:00:00 2001 From: prithivraj Date: Mon, 4 Apr 2022 09:20:55 +0100 Subject: [PATCH 2/3] Removed incompatible plugin --- Example/config.xml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Example/config.xml b/Example/config.xml index 248f63f..c0551af 100644 --- a/Example/config.xml +++ b/Example/config.xml @@ -1,5 +1,5 @@ - + Intercom Cordova An Intercom sample application for Cordova. @@ -20,11 +20,8 @@ - - + + @@ -53,5 +50,4 @@ - From 0d8828b698068dabe50ff961f79906c6b6e1806d Mon Sep 17 00:00:00 2001 From: prithivraj Date: Mon, 4 Apr 2022 09:26:18 +0100 Subject: [PATCH 3/3] Removed CI step for incompatible plugin --- circle.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/circle.yml b/circle.yml index f8e1fc7..29a4c21 100644 --- a/circle.yml +++ b/circle.yml @@ -53,9 +53,6 @@ jobs: - run: name: Install intercom plugin command: cd Example && cordova plugin add ../intercom-plugin - - run: - name: Remove whitelist plugin - command: cd Example && cordova plugin rm cordova-plugin-whitelist - run: name: Build command: cd Example && cordova build android --verbose -- --gradleArg=--stacktrace