From c18772c674172b5e6488d105c43d8b074f31d9e1 Mon Sep 17 00:00:00 2001 From: SanthoshKumar SrikanthaMurali Date: Fri, 19 Aug 2022 10:25:49 +0100 Subject: [PATCH 1/3] Release 12.5.0 --- sample/app/build.gradle | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sample/app/build.gradle b/sample/app/build.gradle index bb75e5f..1e63da7 100644 --- a/sample/app/build.gradle +++ b/sample/app/build.gradle @@ -4,12 +4,12 @@ plugins { } android { - compileSdk 31 + compileSdk 33 defaultConfig { applicationId "com.intercom.sample" minSdk 21 - targetSdk 31 + targetSdk 33 versionCode 1 versionName "1.0" @@ -55,7 +55,7 @@ dependencies { implementation("androidx.navigation:navigation-compose:2.4.1") implementation("androidx.datastore:datastore-preferences:1.0.0") - implementation("io.intercom.android:intercom-sdk:12.4.3") + implementation("io.intercom.android:intercom-sdk:12.5.0") implementation("com.google.firebase:firebase-messaging:20.2.+") testImplementation 'junit:junit:4.13.2' From 3744eb4b65cdb6cb2ac1ff0f86bb79ab0647c0f2 Mon Sep 17 00:00:00 2001 From: SanthoshKumar SrikanthaMurali Date: Fri, 19 Aug 2022 10:26:17 +0100 Subject: [PATCH 2/3] Updated CHANGELOG.md and README.md --- CHANGELOG.md | 4 ++++ README.md | 21 ++++++++++++++++++++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6aceb35..7d363cf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 12.5.0 +###### Release Date: 19-8-2022 +* Added support for Android 13 + ## 12.4.3 ###### Release Date: 28-7-2022 * Fixed a bug where the background colour was using default theme colour in Surveys diff --git a/README.md b/README.md index 7aec0f0..7b5571e 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ There are 2 options for installing Intercom on your Android app. Add the following dependency to your app's `build.gradle` file: ```groovy dependencies { - implementation 'io.intercom.android:intercom-sdk:12.4.2' + implementation 'io.intercom.android:intercom-sdk:12.5.0' implementation 'com.google.firebase:firebase-messaging:20.+' } ``` @@ -66,6 +66,25 @@ allprojects { } } ``` +### Push Notification +For apps targeting Android 13 (Sdk version 33), should request runtime permission to enable notification. +Add the following code to request permission. +```kotlin +registerForActivityResult( + ActivityResultContracts.RequestPermission() + ) { + if (isGranted) { + // Permission is granted. Continue the action or workflow in your + // app. + } else { + // Explain to the user that the feature is unavailable because the + // features requires a permission that the user has denied. At the + // same time, respect the user's decision. Don't link to system + // settings in an effort to convince the user to change their + // decision. + } +} +``` ## Customer Support 👋 Contact us with any issues at [Intercom Developer Hub available here](https://developers.intercom.com/installing-intercom/docs/intercom-for-android). If you bump into any problems or need more support, just start a conversation using Intercom there and it will be immediately routed to our Customer Support Engineers. From 8431d21e0e75a57c1e821c2d8750a24cbfb59779 Mon Sep 17 00:00:00 2001 From: SanthoshKumar SrikanthaMurali Date: Fri, 19 Aug 2022 10:32:09 +0100 Subject: [PATCH 3/3] Updated README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7b5571e..56ab012 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ allprojects { } ``` ### Push Notification -For apps targeting Android 13 (Sdk version 33), should request runtime permission to enable notification. +Apps targeting Android 13 should request a runtime permission to enable notifications. Add the following code to request permission. ```kotlin registerForActivityResult(