Skip to content

Commit

Permalink
Merge pull request #315 from intercom/mike/update_12.0.0
Browse files Browse the repository at this point in the history
Release 12.0.0
  • Loading branch information
MikeMcNamara committed Apr 4, 2022
2 parents 885fb6b + 0d8828b commit bde51df
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 18 deletions.
32 changes: 32 additions & 0 deletions 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.
Expand Down
10 changes: 3 additions & 7 deletions Example/config.xml
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<widget id="io.intercom.cordova.sample" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0" xmlns:android="schemas.android.com/apk/res/android">
<widget id="io.intercom.cordova.sample" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:android="schemas.android.com/apk/res/android" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>Intercom Cordova</name>
<description>
An Intercom sample application for Cordova.
Expand All @@ -20,11 +20,8 @@
<preference name="android-minSdkVersion" value="22" />
<preference name="android-targetSdkVersion" value="31" />
<preference name="android-compileSdkVersion" value="31" />
<edit-config
file="app/src/main/AndroidManifest.xml"
target="/manifest/application/activity[@android:name='MainActivity']"
mode="merge">
<activity android:exported="true"/>
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application/activity[@android:name='MainActivity']">
<activity android:exported="true" />
</edit-config>
<preference name="AndroidXEnabled" value="true" />
<icon density="hdpi" src="www/img/android/hdpi.png" />
Expand Down Expand Up @@ -53,5 +50,4 @@
<preference name="intercom-app-id" value="YOUR_APP_ID" />
<preference name="intercom-ios-api-key" value="YOUR_IOS_API_KEY" />
<preference name="intercom-android-api-key" value="YOUR_ANDROID_API_KEY" />
<plugin name="cordova-plugin-whitelist" spec="1.0.0" />
</widget>
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -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
<plugin name="cordova-plugin-intercom" version="~11.1.0" />
<plugin name="cordova-plugin-intercom" version="~12.0.0" />
```

## Example App
Expand Down
3 changes: 0 additions & 3 deletions circle.yml
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion 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",
Expand Down
4 changes: 2 additions & 2 deletions intercom-plugin/plugin.xml
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<plugin id="cordova-plugin-intercom" version="11.1.0" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<plugin id="cordova-plugin-intercom" version="12.0.0" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>Intercom</name>
<author>Intercom</author>
<license>MIT License</license>
Expand Down Expand Up @@ -62,7 +62,7 @@
<source url="https://cdn.cocoapods.org/"/>
</config>
<pods use-frameworks="true">
<pod name="Intercom" spec="~> 11.2.0" />
<pod name="Intercom" spec="~> 12.0.0" />
</pods>
</podspec>
</platform>
Expand Down
2 changes: 1 addition & 1 deletion intercom-plugin/src/android/IntercomBridge.java
Expand Up @@ -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: {
Expand Down
4 changes: 2 additions & 2 deletions intercom-plugin/src/android/intercom.gradle
Expand Up @@ -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'
}
}

Expand Down
2 changes: 1 addition & 1 deletion intercom-plugin/src/ios/IntercomBridge.m
Expand Up @@ -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
Expand Down

0 comments on commit bde51df

Please sign in to comment.