Skip to content

Commit

Permalink
[mparticle-integrationsGH-139] Disable Airhsip from prompting for not…
Browse files Browse the repository at this point in the history
…ifications
  • Loading branch information
rlepinski committed Mar 2, 2023
1 parent cda1aab commit c9f06fe
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 c9f06fe

Please sign in to comment.