diff --git a/CHANGELOG.md b/CHANGELOG.md index 8487d32..5f9565c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Intercom for Cordova/PhoneGap +## 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) * Updated Intercom for Android to [3.0.9](https://github.com/intercom/intercom-android/releases/tag/3.0.9). diff --git a/README.md b/README.md index 6b64b1a..7d928ff 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ To install the plugin in your Cordova app, run the following: To add the plugin to your PhoneGap app, add the following to your `config.xml`: - + ## Configuring Intercom diff --git a/package.json b/package.json index f6cac31..943285c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cordova-plugin-intercom", - "version": "3.0.11", + "version": "3.0.12", "description": "Official Cordova/PhoneGap plugin for Intercom", "cordova": { "id": "cordova-plugin-intercom", diff --git a/plugin.xml b/plugin.xml index a660ffd..01de2a0 100644 --- a/plugin.xml +++ b/plugin.xml @@ -1,5 +1,5 @@ - + Intercom Intercom MIT License diff --git a/src/android/IntercomBridge.java b/src/android/IntercomBridge.java index 9f774d4..8ad41aa 100644 --- a/src/android/IntercomBridge.java +++ b/src/android/IntercomBridge.java @@ -62,7 +62,7 @@ private void setUpIntercom() { try { Context context = IntercomBridge.this.cordova.getActivity().getApplicationContext(); - CordovaHeaderInterceptor.setCordovaVersion(context, "3.0.11"); + CordovaHeaderInterceptor.setCordovaVersion(context, "3.0.12"); switch (IntercomPushManager.getInstalledModuleType()) { case GCM: { @@ -156,6 +156,14 @@ private enum Action { callbackContext.success(); } }, + displayMessageComposerWithInitialMessage { + @Override void performAction(JSONArray args, CallbackContext callbackContext, CordovaInterface cordova) { + String initialMessage = args.optString(0); + + Intercom.client().displayMessageComposer(initialMessage); + callbackContext.success(); + } + }, displayConversationsList { @Override void performAction(JSONArray args, CallbackContext callbackContext, CordovaInterface cordova) { Intercom.client().displayConversationsList(); diff --git a/src/android/intercom.gradle b/src/android/intercom.gradle index 7e8b9f1..e850fc1 100644 --- a/src/android/intercom.gradle +++ b/src/android/intercom.gradle @@ -4,5 +4,5 @@ repositories { } } dependencies { - compile 'io.intercom.android:intercom-sdk:3.0.9' + compile 'io.intercom.android:intercom-sdk:3.0.10' } \ No newline at end of file diff --git a/src/ios/Intercom.framework/Versions/A/Headers/Intercom.h b/src/ios/Intercom.framework/Versions/A/Headers/Intercom.h index 15c02cc..d141b5e 100644 --- a/src/ios/Intercom.framework/Versions/A/Headers/Intercom.h +++ b/src/ios/Intercom.framework/Versions/A/Headers/Intercom.h @@ -1,6 +1,6 @@ // // Intercom.h -// Intercom for iOS - Version 3.0.12 +// Intercom for iOS - Version 3.0.13 // // Created by Intercom on 8/01/2015. // Copyright (c) 2014 Intercom. All rights reserved. @@ -10,7 +10,7 @@ #import #if __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_8_0 -#error This version (3.0.12) of Intercom for iOS supports iOS 8.0 upwards. +#error This version (3.0.13) of Intercom for iOS supports iOS 8.0 upwards. #endif NS_ASSUME_NONNULL_BEGIN @@ -257,6 +257,11 @@ typedef NS_ENUM(NSUInteger, ICMPreviewPosition){ */ + (void)presentMessageComposer; +/*! + Present the message composer with a message to pre-populate the composer. + */ ++ (void)presentMessageComposerWithInitialMessage:(NSString *)message; + /*! Present the conversation list. */ diff --git a/src/ios/Intercom.framework/Versions/A/Intercom b/src/ios/Intercom.framework/Versions/A/Intercom index 8bba354..b37501b 100644 Binary files a/src/ios/Intercom.framework/Versions/A/Intercom and b/src/ios/Intercom.framework/Versions/A/Intercom differ diff --git a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/ar.strings b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/ar.strings index 0515570..a32293e 100644 --- a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/ar.strings +++ b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/ar.strings @@ -1,48 +1,48 @@ "error.loading.conversation" = "تعذر تحميل المحادثة"; "actionsheet.message.failed.delivery" = "تعذر تسليم الرسالة"; -"message.delivered" = "تم التسليم"; -"alert.new.sdk.user.button" = "شكرًا"; +"message.delivered" = "تم تسليمها"; +"alert.new.sdk.user.button" = "شكرًا لك"; "profile.time.location.format" = "{time} في {location}"; "message.state.sending" = "إرسال"; -"message.placeholder.write.reply" = "كتابة رد"; +"message.placeholder.write.reply" = "اكتب ردًا"; "twitter.follow.us" = "تابعنا على Twitter"; -"alert.new.sdk.user.message" = "تم دمج تطبيقك على iOS مع نظام Intercom الأساسي الآن"; -"error.title" = "حدث خطأ ما"; -"error.no_conversations.message.no_app_name" = "ليس هناك أي محادثات إلى الآن"; -"facebook.like.us" = "أبد إعجابك بنا على Facebook"; +"alert.new.sdk.user.message" = "تطبيق iOS الخاص بك مدمج الآن مع نظام Intercom"; +"error.title" = "حدث خطأ"; +"error.no_conversations.message.no_app_name" = "لم يتم إجراء أي محادثات بعد"; +"facebook.like.us" = "تابعنا على Facebook"; "from.app" = "من {name}"; "error.loading.conversations.fallback" = "تعذر تحميل محادثاتك مع فريق {name}"; "message.placeholder.start.conversation" = "بدء محادثة"; "navigation.back" = "رجوع"; "admin.from.app" = "{name} من {company}"; "message.not.seen" = "لم تتم رؤيتها بعد"; -"error.no_conversations.title" = "ليس هناك أي محادثات"; -"time.difference.delivered" = "تم التسليم"; -"actionsheet.try.again" = "إعادة المحاولة"; +"error.no_conversations.title" = "لم يتم إجراء محادثات"; +"time.difference.delivered" = "تم تسليمها"; +"actionsheet.try.again" = "حاول مرة أخرى"; "alert.new.sdk.user.title" = "تهانينا"; -"app_team" = "فربق {name}"; -"navbar.title.conversations" = "المحادثات مع {name}"; +"app_team" = "فريق {name}"; +"navbar.title.conversations" = "المحادثات\nمع {name}"; "actionsheet.cancel" = "إلغاء"; "navigation.close" = "إغلاق"; "message.send" = "إرسال"; -"time.difference.format.hours.ago" = "قبل {delta} س"; -"time.difference.format.weeks.ago" = "قبل {delta} أ"; -"last_active.format.hours.ago" = "نشط قبل {hours} س"; +"time.difference.format.hours.ago" = "منذ {delta} س"; +"time.difference.format.weeks.ago" = "منذ {delta} أ"; +"last_active.format.hours.ago" = "نشط منذ {hours} س"; "actionsheet.delete" = "حذف"; "navbar.title.new.conversation" = "محادثة جديدة"; -"last_active.over_week_ago" = "نشط قبل أكثر من ساعة"; -"time.difference.just.now" = "توًا"; -"last_active.minutes.ago" = "نشط قبل {minutes} د"; -"last_active.15_minutes" = "نشط خلال آخر {minutes} د"; +"last_active.over_week_ago" = "نشط منذ أكثر من أسبوع"; +"time.difference.just.now" = "الآن"; +"last_active.minutes.ago" = "نشط منذ {minutes} د"; +"last_active.15_minutes" = "نشط في {minutes} د الأخيرة"; "message.seen" = "تمت رؤيتها"; -"last_active.format.days.ago" = "نشط قبل {days} ي"; +"last_active.format.days.ago" = "نشط منذ {days} ي"; "error.starting.conversation.fallback" = "تعذر بدء محادثة جديدة"; -"error.no_conversations.message" = "ليس هناك أي محادثات مع فريق {name} إلى الآن"; -"time.difference.format.days.ago" = "قبل {delta} ي"; +"error.no_conversations.message" = "لم يتم إجراء محادثات مع فريق {name} بعد"; +"time.difference.format.days.ago" = "منذ {delta} ي"; "error.loading.conversations.fallback.no_app_name" = "تعذر تحميل محادثاتك"; -"we.run.on.intercom" = "نحن نعمل على Intercom"; +"we.run.on.intercom" = "يتم إجراء المحادثة من Intercom"; "navbar.title.conversations.no_app_name" = "المحادثات"; -"time.difference.format.minutes.ago" = "قبل {delta} د"; +"time.difference.format.minutes.ago" = "منذ {delta} د"; "error.tap.to.retry" = "إعادة المحاولة"; -"reply_from_admin" = "{name} الرد من"; +"reply_from_admin" = "رد من {name}"; "inbox.you" = "أنت"; diff --git a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/bg.strings b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/bg.strings index aa7a10d..64e88de 100644 --- a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/bg.strings +++ b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/bg.strings @@ -21,7 +21,7 @@ "actionsheet.try.again" = "Опитайте отново"; "alert.new.sdk.user.title" = "Поздравления"; "app_team" = "{name} Екип"; -"navbar.title.conversations" = "Разговори с {name}"; +"navbar.title.conversations" = "Разговори\nс {name}"; "actionsheet.cancel" = "Отказ"; "navigation.close" = "Затваряне"; "message.send" = "Изпращане"; diff --git a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/bs.strings b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/bs.strings index 4912d67..133c630 100644 --- a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/bs.strings +++ b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/bs.strings @@ -21,7 +21,7 @@ "actionsheet.try.again" = "Pokušajte ponovno"; "alert.new.sdk.user.title" = "Čestitamo"; "app_team" = "{name} tim"; -"navbar.title.conversations" = "Razgovori s {name}"; +"navbar.title.conversations" = "Razgovori\ns {name}"; "actionsheet.cancel" = "Otkaži"; "navigation.close" = "Zatvori"; "message.send" = "Pošalji"; diff --git a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/ca.strings b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/ca.strings index 8a67f17..d640433 100644 --- a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/ca.strings +++ b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/ca.strings @@ -21,7 +21,7 @@ "actionsheet.try.again" = "Torna-ho a provar"; "alert.new.sdk.user.title" = "Felicitats"; "app_team" = "Equip {name}"; -"navbar.title.conversations" = "Converses amb {name}"; +"navbar.title.conversations" = "Converses\namb {name}"; "actionsheet.cancel" = "Cancel·la"; "navigation.close" = "Tanca"; "message.send" = "Envia"; diff --git a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/cs.strings b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/cs.strings index af3928e..d9b7a28 100644 --- a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/cs.strings +++ b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/cs.strings @@ -21,7 +21,7 @@ "actionsheet.try.again" = "Zkuste to znovu"; "alert.new.sdk.user.title" = "Blahopřejeme"; "app_team" = "Tým {name}"; -"navbar.title.conversations" = "Konverzace s {name}"; +"navbar.title.conversations" = "Konverzace\ns {name}"; "actionsheet.cancel" = "Zrušit"; "navigation.close" = "Zavřít"; "message.send" = "Odeslat"; diff --git a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/da.strings b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/da.strings index 5c3231b..d8b6b3b 100644 --- a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/da.strings +++ b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/da.strings @@ -21,7 +21,7 @@ "actionsheet.try.again" = "Prøv igen"; "alert.new.sdk.user.title" = "Tillykke"; "app_team" = "Team {name}"; -"navbar.title.conversations" = "Samtaler med {name}"; +"navbar.title.conversations" = "Samtaler\nmed {name}"; "actionsheet.cancel" = "Annuller"; "navigation.close" = "Luk"; "message.send" = "Send"; diff --git a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/de-form.strings b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/de-form.strings index 3e4c203..aef8f80 100644 --- a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/de-form.strings +++ b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/de-form.strings @@ -21,7 +21,7 @@ "actionsheet.try.again" = "Versuchen Sie es noch mal."; "alert.new.sdk.user.title" = "Herzlichen Glückwunsch"; "app_team" = "{name} Team"; -"navbar.title.conversations" = "Unterhaltungen mit {name}"; +"navbar.title.conversations" = "Unterhaltungen\nmit {name}"; "actionsheet.cancel" = "Abbrechen"; "navigation.close" = "Schließen"; "message.send" = "Senden"; diff --git a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/de.strings b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/de.strings index da0e627..219082e 100644 --- a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/de.strings +++ b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/de.strings @@ -21,7 +21,7 @@ "actionsheet.try.again" = "Versuch es noch mal."; "alert.new.sdk.user.title" = "Herzlichen Glückwunsch"; "app_team" = "{name} Team"; -"navbar.title.conversations" = "Unterhaltungen mit {name}"; +"navbar.title.conversations" = "Unterhaltungen\nmit {name}"; "actionsheet.cancel" = "Abbrechen"; "navigation.close" = "Schließen"; "message.send" = "Senden"; diff --git a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/el.strings b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/el.strings index abb266c..52b517c 100644 --- a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/el.strings +++ b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/el.strings @@ -21,7 +21,7 @@ "actionsheet.try.again" = "Προσπαθήστε ξανά"; "alert.new.sdk.user.title" = "Συγχαρητήρια"; "app_team" = "Ομάδα {name}"; -"navbar.title.conversations" = "Συζητήσεις με {name}"; +"navbar.title.conversations" = "Συζητήσεις\nμε {name}"; "actionsheet.cancel" = "Ακύρωση"; "navigation.close" = "Κλείσιμο"; "message.send" = "Αποστολή"; diff --git a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/en.strings b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/en.strings index 9b193a3..be38a82 100644 --- a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/en.strings +++ b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/en.strings @@ -21,7 +21,7 @@ "actionsheet.try.again" = "Try Again"; "alert.new.sdk.user.title" = "Congratulations"; "app_team" = "{name} Team"; -"navbar.title.conversations" = "Conversations with {name}"; +"navbar.title.conversations" = "Conversations\nwith {name}"; "actionsheet.cancel" = "Cancel"; "navigation.close" = "Close"; "message.send" = "Send"; diff --git a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/es.strings b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/es.strings index 5a925e1..922ce4e 100644 --- a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/es.strings +++ b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/es.strings @@ -21,7 +21,7 @@ "actionsheet.try.again" = "Inténtalo de nuevo"; "alert.new.sdk.user.title" = "Enhorabuena"; "app_team" = "Equipo {name}"; -"navbar.title.conversations" = "Conversaciones con {name}"; +"navbar.title.conversations" = "Conversaciones\ncon {name}"; "actionsheet.cancel" = "Cancelar"; "navigation.close" = "Cerrar"; "message.send" = "Enviar"; diff --git a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/et.strings b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/et.strings index a83ccdb..9ed2f74 100644 --- a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/et.strings +++ b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/et.strings @@ -21,7 +21,7 @@ "actionsheet.try.again" = "Proovi uuesti"; "alert.new.sdk.user.title" = "Õnnitleme"; "app_team" = "{name} meeskond"; -"navbar.title.conversations" = "Vestlused kasutajaga {name}"; +"navbar.title.conversations" = "Vestlused\nkasutajaga {name}"; "actionsheet.cancel" = "Tühista"; "navigation.close" = "Sule"; "message.send" = "Saada"; diff --git a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/fi.strings b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/fi.strings index 9c094b0..ef8fa62 100644 --- a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/fi.strings +++ b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/fi.strings @@ -21,7 +21,7 @@ "actionsheet.try.again" = "Yritä uudelleen"; "alert.new.sdk.user.title" = "Onnittelut"; "app_team" = "{name}-tiimi"; -"navbar.title.conversations" = "Keskustelut – {name}"; +"navbar.title.conversations" = "Keskustelut\n{name}"; "actionsheet.cancel" = "Peruuta"; "navigation.close" = "Sulje"; "message.send" = "Lähetä"; diff --git a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/fr.strings b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/fr.strings index 8db28d6..9915bdc 100644 --- a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/fr.strings +++ b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/fr.strings @@ -21,7 +21,7 @@ "actionsheet.try.again" = "Réessayer"; "alert.new.sdk.user.title" = "Félicitations"; "app_team" = "{name}"; -"navbar.title.conversations" = "Conversations avec {name}"; +"navbar.title.conversations" = "Conversations\navec {name}"; "actionsheet.cancel" = "Annuler"; "navigation.close" = "Fermer"; "message.send" = "Envoyer"; diff --git a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/he.strings b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/he.strings index 7467c47..21393cb 100644 --- a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/he.strings +++ b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/he.strings @@ -21,7 +21,7 @@ "actionsheet.try.again" = "נסה שוב"; "alert.new.sdk.user.title" = "ברכותינו"; "app_team" = "צוות {name}"; -"navbar.title.conversations" = "שיחות עם {name}"; +"navbar.title.conversations" = "שיחות\nעם {name}"; "actionsheet.cancel" = "בטל"; "navigation.close" = "סגור"; "message.send" = "שלח"; diff --git a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/hr.strings b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/hr.strings index e012c15..949f4f3 100644 --- a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/hr.strings +++ b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/hr.strings @@ -21,7 +21,7 @@ "actionsheet.try.again" = "Pokušaj ponovno"; "alert.new.sdk.user.title" = "Čestitke"; "app_team" = "tim {name}"; -"navbar.title.conversations" = "Razgovori s {name}"; +"navbar.title.conversations" = "Razgovori\ns {name}"; "actionsheet.cancel" = "Odustani"; "navigation.close" = "Zatvori"; "message.send" = "Pošalji"; diff --git a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/hu.strings b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/hu.strings index 1c7bc80..2230e1e 100644 --- a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/hu.strings +++ b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/hu.strings @@ -21,7 +21,7 @@ "actionsheet.try.again" = "Próbáld újra"; "alert.new.sdk.user.title" = "Gratulálunk"; "app_team" = "{name} csapat"; -"navbar.title.conversations" = "Beszélgetések ({name})"; +"navbar.title.conversations" = "Beszélgetések\n{name}"; "actionsheet.cancel" = "Mégse"; "navigation.close" = "Bezárás"; "message.send" = "Küldés"; diff --git a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/id.strings b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/id.strings index 32c1823..f0feb4a 100644 --- a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/id.strings +++ b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/id.strings @@ -21,7 +21,7 @@ "actionsheet.try.again" = "Coba Lagi"; "alert.new.sdk.user.title" = "Selamat"; "app_team" = "Tim {name}"; -"navbar.title.conversations" = "Percakapan dengan {name}"; +"navbar.title.conversations" = "Percakapan\ndengan {name}"; "actionsheet.cancel" = "Batal"; "navigation.close" = "Tutup"; "message.send" = "Kirim"; diff --git a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/it.strings b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/it.strings index d797788..df7f496 100644 --- a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/it.strings +++ b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/it.strings @@ -21,7 +21,7 @@ "actionsheet.try.again" = "Riprova"; "alert.new.sdk.user.title" = "Congratulazioni"; "app_team" = "Team {name}"; -"navbar.title.conversations" = "Conversazioni con {name}"; +"navbar.title.conversations" = "Conversazioni\ncon {name}"; "actionsheet.cancel" = "Annulla"; "navigation.close" = "Chiudi"; "message.send" = "Invia"; diff --git a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/ja.strings b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/ja.strings index a5f0f60..c8ea91d 100644 --- a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/ja.strings +++ b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/ja.strings @@ -21,7 +21,7 @@ "actionsheet.try.again" = "再度お試しください"; "alert.new.sdk.user.title" = "おめでとうございます"; "app_team" = "{name}チーム"; -"navbar.title.conversations" = "{name}との会話"; +"navbar.title.conversations" = "{name}\nとの会話"; "actionsheet.cancel" = "キャンセル"; "navigation.close" = "クローズ"; "message.send" = "送信"; diff --git a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/ko.strings b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/ko.strings index b5f3305..51b2cf8 100644 --- a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/ko.strings +++ b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/ko.strings @@ -21,7 +21,7 @@ "actionsheet.try.again" = "다시 시도하기"; "alert.new.sdk.user.title" = "축하드립니다"; "app_team" = "{name} 팀"; -"navbar.title.conversations" = "{name}님과의 대화 내용"; +"navbar.title.conversations" = "대화 내용\n{name}님"; "actionsheet.cancel" = "취소하기"; "navigation.close" = "닫기"; "message.send" = "전송하기"; diff --git a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/lt.strings b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/lt.strings index 097bf16..8548ae5 100644 --- a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/lt.strings +++ b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/lt.strings @@ -21,7 +21,7 @@ "actionsheet.try.again" = "Bandyti dar kartą"; "alert.new.sdk.user.title" = "Sveikiname"; "app_team" = "„{name}“ komanda"; -"navbar.title.conversations" = "Pokalbiai su: „{name}“"; +"navbar.title.conversations" = "Pokalbiai\nsu „{name}“"; "actionsheet.cancel" = "Atšaukti"; "navigation.close" = "Uždaryti"; "message.send" = "Siųsti"; diff --git a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/lv.strings b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/lv.strings index c699891..552032d 100644 --- a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/lv.strings +++ b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/lv.strings @@ -21,7 +21,7 @@ "actionsheet.try.again" = "Mēģiniet vēlreiz"; "alert.new.sdk.user.title" = "Apsveicam!"; "app_team" = "Komanda {name}"; -"navbar.title.conversations" = "Sarunas ar lietotāju {name}"; +"navbar.title.conversations" = "Sarunas\nar lietotāju {name}"; "actionsheet.cancel" = "Atcelt"; "navigation.close" = "Aizvērt"; "message.send" = "Sūtīt"; diff --git a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/mn.strings b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/mn.strings index b12a97d..f227386 100644 --- a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/mn.strings +++ b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/mn.strings @@ -21,7 +21,7 @@ "actionsheet.try.again" = "Дахин оролдох"; "alert.new.sdk.user.title" = "Баяр хүргэе"; "app_team" = "{name} баг"; -"navbar.title.conversations" = "{name}-тай хийсэн чат"; +"navbar.title.conversations" = "{name} тай\nхийсэн чат"; "actionsheet.cancel" = "Цуцлах"; "navigation.close" = "Хаах"; "message.send" = "Илгээх"; diff --git a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/nb.strings b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/nb.strings index f6b4ad0..253e112 100644 --- a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/nb.strings +++ b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/nb.strings @@ -21,7 +21,7 @@ "actionsheet.try.again" = "Prøv igjen"; "alert.new.sdk.user.title" = "Gratulerer"; "app_team" = "{name}-teamet"; -"navbar.title.conversations" = "Samtaler med {name}"; +"navbar.title.conversations" = "Samtaler\nmed {name}"; "actionsheet.cancel" = "Avbryt"; "navigation.close" = "Lukk"; "message.send" = "Send"; diff --git a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/nl.strings b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/nl.strings index b13a9cc..842a0f3 100644 --- a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/nl.strings +++ b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/nl.strings @@ -21,7 +21,7 @@ "actionsheet.try.again" = "Opnieuw proberen"; "alert.new.sdk.user.title" = "Gefeliciteerd"; "app_team" = "Team van {name}"; -"navbar.title.conversations" = "Gesprekken met {name}"; +"navbar.title.conversations" = "Gesprekken\nmet {name}"; "actionsheet.cancel" = "Annuleren"; "navigation.close" = "Sluiten"; "message.send" = "Versturen"; diff --git a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/pl.strings b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/pl.strings index 8480141..e981e58 100644 --- a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/pl.strings +++ b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/pl.strings @@ -21,7 +21,7 @@ "actionsheet.try.again" = "Spróbuj ponownie"; "alert.new.sdk.user.title" = "Gratulacje"; "app_team" = "Zespół {name}"; -"navbar.title.conversations" = "Rozmowy z {name}"; +"navbar.title.conversations" = "Rozmowy\nz {name}"; "actionsheet.cancel" = "Anuluj"; "navigation.close" = "Zamknij"; "message.send" = "Wyślij"; diff --git a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/pt-br.strings b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/pt-br.strings index 794e3c8..fd22308 100644 --- a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/pt-br.strings +++ b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/pt-br.strings @@ -21,7 +21,7 @@ "actionsheet.try.again" = "Repetir"; "alert.new.sdk.user.title" = "Parabéns"; "app_team" = "Equipe {name}"; -"navbar.title.conversations" = "Conversas com {name}"; +"navbar.title.conversations" = "Conversas\ncom {name}"; "actionsheet.cancel" = "Cancelar"; "navigation.close" = "Fechar"; "message.send" = "Enviar"; diff --git a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/pt-pt.strings b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/pt-pt.strings index 0935c84..9906f32 100644 --- a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/pt-pt.strings +++ b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/pt-pt.strings @@ -21,7 +21,7 @@ "actionsheet.try.again" = "Repetir"; "alert.new.sdk.user.title" = "Parabéns"; "app_team" = "Equipa {name}"; -"navbar.title.conversations" = "Conversas com {name}"; +"navbar.title.conversations" = "Conversas\ncom {name}"; "actionsheet.cancel" = "Cancelar"; "navigation.close" = "Fechar"; "message.send" = "Enviar"; diff --git a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/ro.strings b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/ro.strings index b492340..0f148be 100644 --- a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/ro.strings +++ b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/ro.strings @@ -21,7 +21,7 @@ "actionsheet.try.again" = "Încearcă din nou"; "alert.new.sdk.user.title" = "Felicitări"; "app_team" = "Echipa {name}"; -"navbar.title.conversations" = "Conversaţii cu {name}"; +"navbar.title.conversations" = "Conversaţii\ncu {name}"; "actionsheet.cancel" = "Anulare"; "navigation.close" = "Închidere"; "message.send" = "Trimite"; diff --git a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/ru.strings b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/ru.strings index ceaa897..d85c465 100644 --- a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/ru.strings +++ b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/ru.strings @@ -21,7 +21,7 @@ "actionsheet.try.again" = "Повторить попытку"; "alert.new.sdk.user.title" = "Поздравляем!"; "app_team" = "Команда {name}"; -"navbar.title.conversations" = "Разговоры с {name}"; +"navbar.title.conversations" = "Разговоры\nс {name}"; "actionsheet.cancel" = "Отменить"; "navigation.close" = "Закрыть"; "message.send" = "Отправить"; diff --git a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/sl.strings b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/sl.strings index 583df9c..9d8d01d 100644 --- a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/sl.strings +++ b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/sl.strings @@ -21,7 +21,7 @@ "actionsheet.try.again" = "Poskusi znova"; "alert.new.sdk.user.title" = "Čestitamo"; "app_team" = "Ekipa {name}"; -"navbar.title.conversations" = "Pogovori z osebo {name}"; +"navbar.title.conversations" = "Pogovori\nz osebo {name}"; "actionsheet.cancel" = "Prekliči"; "navigation.close" = "Zapri"; "message.send" = "Pošlji"; diff --git a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/sr.strings b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/sr.strings index 4f36b88..5a08ca2 100644 --- a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/sr.strings +++ b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/sr.strings @@ -21,7 +21,7 @@ "actionsheet.try.again" = "Pokušajte ponovo"; "alert.new.sdk.user.title" = "Čestitamo"; "app_team" = "{name} Tim"; -"navbar.title.conversations" = "Razgovori sa {name}"; +"navbar.title.conversations" = "Razgovori\nsa {name}"; "actionsheet.cancel" = "Otkaži"; "navigation.close" = "Zatvori"; "message.send" = "Pošalji"; diff --git a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/sv.strings b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/sv.strings index ec8e256..5ca69a4 100644 --- a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/sv.strings +++ b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/sv.strings @@ -21,7 +21,7 @@ "actionsheet.try.again" = "Försök igen"; "alert.new.sdk.user.title" = "Grattis"; "app_team" = "{name}-team"; -"navbar.title.conversations" = "Konversationer med {name}"; +"navbar.title.conversations" = "Konversationer\nmed {name}"; "actionsheet.cancel" = "Avbryt"; "navigation.close" = "Stäng"; "message.send" = "Skicka"; diff --git a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/tr.strings b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/tr.strings index b263949..62fa00d 100644 --- a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/tr.strings +++ b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/tr.strings @@ -21,7 +21,7 @@ "actionsheet.try.again" = "Tekrar Dene"; "alert.new.sdk.user.title" = "Tebrikler"; "app_team" = "{name} Ekibi"; -"navbar.title.conversations" = "{name} ile sohbetler"; +"navbar.title.conversations" = "{name} ile\nsohbetler"; "actionsheet.cancel" = "İptal"; "navigation.close" = "Kapat"; "message.send" = "Gönder"; diff --git a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/vi.strings b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/vi.strings index 27a4776..e206e15 100644 --- a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/vi.strings +++ b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/vi.strings @@ -21,7 +21,7 @@ "actionsheet.try.again" = "Thử lại"; "alert.new.sdk.user.title" = "Xin chúc mừng"; "app_team" = "Nhóm {name}"; -"navbar.title.conversations" = "Hội thoại với {name}"; +"navbar.title.conversations" = "Hội thoại\nvới {name}"; "actionsheet.cancel" = "Hủy"; "navigation.close" = "Đóng"; "message.send" = "Gửi"; diff --git a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/zh-hans.strings b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/zh-hans.strings index 2b411dd..ccba51b 100644 --- a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/zh-hans.strings +++ b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/zh-hans.strings @@ -21,7 +21,7 @@ "actionsheet.try.again" = "重试"; "alert.new.sdk.user.title" = "恭喜您"; "app_team" = "{name} 团队"; -"navbar.title.conversations" = "与 {name} 对话"; +"navbar.title.conversations" = "对话\n{name}"; "actionsheet.cancel" = "取消"; "navigation.close" = "关闭"; "message.send" = "发送"; diff --git a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/zh-hant.strings b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/zh-hant.strings index 11d49af..d1926b4 100644 --- a/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/zh-hant.strings +++ b/src/ios/Intercom.framework/Versions/A/Resources/Intercom.bundle/locales/zh-hant.strings @@ -21,7 +21,7 @@ "actionsheet.try.again" = "再試一次"; "alert.new.sdk.user.title" = "恭喜您"; "app_team" = "{name} 團隊"; -"navbar.title.conversations" = "與 {name} 的對話"; +"navbar.title.conversations" = "對話\n{name}"; "actionsheet.cancel" = "取消"; "navigation.close" = "關閉"; "message.send" = "傳送"; diff --git a/src/ios/IntercomBridge.h b/src/ios/IntercomBridge.h index e4e6f35..ce79332 100644 --- a/src/ios/IntercomBridge.h +++ b/src/ios/IntercomBridge.h @@ -17,6 +17,7 @@ - (void)displayMessenger:(CDVInvokedUrlCommand*)command; - (void)displayMessageComposer:(CDVInvokedUrlCommand*)command; +- (void)displayMessageComposerWithInitialMessage:(CDVInvokedUrlCommand*)command; - (void)displayConversationsList:(CDVInvokedUrlCommand*)command; - (void)setLauncherVisibility:(CDVInvokedUrlCommand*)command; diff --git a/src/ios/IntercomBridge.m b/src/ios/IntercomBridge.m index 261ccfa..1dd4160 100644 --- a/src/ios/IntercomBridge.m +++ b/src/ios/IntercomBridge.m @@ -9,7 +9,7 @@ + (void)setCordovaVersion:(NSString *)v; @implementation IntercomBridge : CDVPlugin - (void)pluginInitialize { - [Intercom setCordovaVersion:@"3.0.11"]; + [Intercom setCordovaVersion:@"3.0.12"]; #ifdef DEBUG [Intercom enableLogging]; #endif @@ -99,6 +99,12 @@ - (void)displayMessageComposer:(CDVInvokedUrlCommand*)command { [self sendSuccess:command]; } +- (void)displayMessageComposerWithInitialMessage:(CDVInvokedUrlCommand*)command { + NSString *initialMessage = command.arguments[0]; + [Intercom presentMessageComposerWithInitialMessage:initialMessage]; + [self sendSuccess:command]; +} + - (void)displayConversationsList:(CDVInvokedUrlCommand*)command { [Intercom presentConversationList]; [self sendSuccess:command]; diff --git a/www/intercom.js b/www/intercom.js index ba33491..9fdb9b4 100644 --- a/www/intercom.js +++ b/www/intercom.js @@ -31,6 +31,10 @@ var intercom = { cordova.exec(success, error, 'Intercom', 'displayMessageComposer', []); }, + displayMessageComposerWithInitialMessage: function(initialMessage, success, error) { + cordova.exec(success, error, 'Intercom', 'displayMessageComposerWithInitialMessage', [initialMessage]); + }, + displayConversationsList: function(success, error) { cordova.exec(success, error, 'Intercom', 'displayConversationsList', []); },