Skip to content

Commit 90db999

Browse files
authored
Merge pull request #587 from intercom/santhosh/release_12_5_0
Release 12.5.0
2 parents 6f9e4bf + 8431d21 commit 90db999

File tree

3 files changed

+27
-4
lines changed

3 files changed

+27
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 12.5.0
4+
###### Release Date: 19-8-2022
5+
* Added support for Android 13
6+
37
## 12.4.3
48
###### Release Date: 28-7-2022
59
* Fixed a bug where the background colour was using default theme colour in Surveys

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ There are 2 options for installing Intercom on your Android app.
4343
Add the following dependency to your app's `build.gradle` file:
4444
```groovy
4545
dependencies {
46-
implementation 'io.intercom.android:intercom-sdk:12.4.2'
46+
implementation 'io.intercom.android:intercom-sdk:12.5.0'
4747
implementation 'com.google.firebase:firebase-messaging:20.+'
4848
}
4949
```
@@ -66,6 +66,25 @@ allprojects {
6666
}
6767
}
6868
```
69+
### Push Notification
70+
Apps targeting Android 13 should request a runtime permission to enable notifications.
71+
Add the following code to request permission.
72+
```kotlin
73+
registerForActivityResult(
74+
ActivityResultContracts.RequestPermission()
75+
) {
76+
if (isGranted) {
77+
// Permission is granted. Continue the action or workflow in your
78+
// app.
79+
} else {
80+
// Explain to the user that the feature is unavailable because the
81+
// features requires a permission that the user has denied. At the
82+
// same time, respect the user's decision. Don't link to system
83+
// settings in an effort to convince the user to change their
84+
// decision.
85+
}
86+
}
87+
```
6988

7089
## Customer Support
7190
👋 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.

sample/app/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ plugins {
44
}
55

66
android {
7-
compileSdk 31
7+
compileSdk 33
88

99
defaultConfig {
1010
applicationId "com.intercom.sample"
1111
minSdk 21
12-
targetSdk 31
12+
targetSdk 33
1313
versionCode 1
1414
versionName "1.0"
1515

@@ -55,7 +55,7 @@ dependencies {
5555
implementation("androidx.navigation:navigation-compose:2.4.1")
5656
implementation("androidx.datastore:datastore-preferences:1.0.0")
5757

58-
implementation("io.intercom.android:intercom-sdk:12.4.3")
58+
implementation("io.intercom.android:intercom-sdk:12.5.0")
5959
implementation("com.google.firebase:firebase-messaging:20.2.+")
6060

6161
testImplementation 'junit:junit:4.13.2'

0 commit comments

Comments
 (0)