Skip to content

Commit

Permalink
[GH-139] Disable Airship from prompting for notifications (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
rlepinski authored Mar 22, 2023
1 parent cda1aab commit a68b82c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ android {

dependencies {
compileOnly 'androidx.legacy:legacy-support-v4:1.0.0'
api 'com.urbanairship.android:urbanairship-core:16.8.1'
api 'com.urbanairship.android:urbanairship-core:16.9.0'
testImplementation 'junit:junit:4.13.2'
testImplementation files('libs/java-json.jar')
}
1 change: 1 addition & 0 deletions src/main/kotlin/com/mparticle/kits/MParticleAutopilot.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class MParticleAutopilot : Autopilot() {
.setNotificationIcon(preferences.getInt(NOTIFICATION_ICON_NAME, 0))
.setNotificationAccentColor(preferences.getInt(NOTIFICATION_COLOR, 0))
.setCustomPushProvider(MParticlePushProvider.instance)
.setIsPromptForPermissionOnUserNotificationsEnabled(false)
if (MParticle.getInstance()?.environment == MParticle.Environment.Development) {
optionsBuilder.setDevelopmentAppKey(preferences.getString(APP_KEY, null))
.setDevelopmentAppSecret(preferences.getString(APP_SECRET, null))
Expand Down

0 comments on commit a68b82c

Please sign in to comment.