Skip to content

Commit

Permalink
Merge pull request #587 from intercom/santhosh/release_12_5_0
Browse files Browse the repository at this point in the history
Release 12.5.0
  • Loading branch information
prithivraj authored Aug 19, 2022
2 parents 6f9e4bf + 8431d21 commit 90db999
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.+'
}
```
Expand All @@ -66,6 +66,25 @@ allprojects {
}
}
```
### Push Notification
Apps targeting Android 13 should request a runtime permission to enable notifications.
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.
Expand Down
6 changes: 3 additions & 3 deletions sample/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit 90db999

Please sign in to comment.