-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
android 13 notification permissions request fired automatically too soon #139
Comments
I don't think mParticle can do anything about this ATM, but the Airship team will add a flag to disable this behavior in the next release, then post an update here. |
ok great thanks.....is there an expected time when that release will likely happen? |
The Airship SDK update will go out early next week and then I can submit a PR for this. I am not sure what mParticles release cycle is though. |
rlepinski
added a commit
to urbanairship/mparticle-android-integration-urbanairship
that referenced
this issue
Mar 2, 2023
rlepinski
added a commit
to urbanairship/mparticle-android-integration-urbanairship
that referenced
this issue
Mar 2, 2023
samdozor
pushed a commit
that referenced
this issue
Mar 22, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I work on a large app that uses MParticle and Urban Airship, hence this integration. I am working on setting my targetSDK to 33 and am using an android 13 emulator. I find that if I include the dependency for this integration, and call MParticle.start() in my Application.onCreate(), that the system fires a permissions dialog for notifications. Unfortunately, this dialog fires early in the launch sequence, and is auto-dismissed when the app finishes launching. I am unable to find out what I am doing to trigger this dialog, as I have commented out most of the Particle and UA stuff while tracking this down. I do not call
MParticle.getInstance()?.Messaging()?.enablePushNotifications()
or
UAirship.shared().getPushManager().enableUserPushNotifications()
anywhere, and I don't have a MPService or MPReciever anymore (commented out). All I am doing as far as I can tell is calling MParticle.start() -- if I take that call out, the notification dialog goes away, and if I comment out the implementation() of the urbanairship kit dependency so that it is not used anymore, the notification dialog goes away as well, even if I call start().
I really need to be able to control when this notification permission dialog launches so that I can show it at an appropriate time, and also so that it will not auto-dismiss and be useless anyway. Any hints would be appreciated.
The text was updated successfully, but these errors were encountered: