Skip to content

Commit 3744eb4

Browse files
Updated CHANGELOG.md and README.md
1 parent c18772c commit 3744eb4

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
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+
For apps targeting Android 13 (Sdk version 33), should request runtime permission to enable notification.
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.

0 commit comments

Comments
 (0)