You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Add below lines to `MainApplication.java` inside `onCreate` method, replacing `apiKey` and `appId` which can be found in your [workspace settings](https://app.intercom.com/a/apps/_/settings/android).
72
+
- Add below lines to `android/app/src/main/java/com/YOUR_APP/app/MainApplication.java` inside `onCreate` method, replacing `apiKey` and `appId` which can be found in your [workspace settings](https://app.intercom.com/a/apps/_/settings/android).
73
73
74
74
```java
75
75
importcom.intercom.reactnative.IntercomModule; // <-- Add this line
@@ -89,16 +89,16 @@ public void onCreate() {
89
89
}
90
90
```
91
91
92
-
- Open `android/build.gradle` and change `minSdkVersion` to **21**
92
+
- Open `android/build.gradle` and change `minSdkVersion` to **21**, `compileSdkVersion` and `targetSdkVersion` to at least **31**
93
93
94
94
```Gradle
95
95
buildscript {
96
96
// ...
97
97
ext {
98
98
buildToolsVersion = "29.0.2"
99
99
minSdkVersion = 21 // <-- Here
100
-
compileSdkVersion = 29
101
-
targetSdkVersion = 29
100
+
compileSdkVersion = 31 // <-- Here
101
+
targetSdkVersion = 31 // <-- Here
102
102
}
103
103
// ...
104
104
}
@@ -115,7 +115,7 @@ dependencies {
115
115
116
116
#### Android: Permissions
117
117
118
-
You will need to include the [READ\_EXTERNAL\_STORAGE](http://developer.android.com/reference/android/Manifest.permission.html#READ_EXTERNAL_STORAGE) permission if you have enabled attachments:
118
+
You will need to include the [READ\_EXTERNAL\_STORAGE](http://developer.android.com/reference/android/Manifest.permission.html#READ_EXTERNAL_STORAGE) permission in `android/app/src/main/AndroidManifest.xml`if you have enabled attachments:
0 commit comments