Skip to content
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

Exception when calling SetLocationCollectionState #1926

Open
artoonie opened this issue Aug 9, 2024 · 0 comments
Open

Exception when calling SetLocationCollectionState #1926

artoonie opened this issue Aug 9, 2024 · 0 comments

Comments

@artoonie
Copy link

artoonie commented Aug 9, 2024

Tap Mapbox > Mapbox Telemetry > Accept while targeting Android 31+, running on Android 12+.

You will get the following exception:

E Unity : AndroidJavaException: java.lang.IllegalArgumentException: com.x.x: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
E Unity : Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.
E Unity : java.lang.IllegalArgumentException: com.x.x: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
E Unity : Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.
E Unity : at android.app.PendingIntent.checkPendingIntent(PendingIntent.java:461)
E Unity : at android.app.PendingIntent.getBroadcastAsUser(PendingIntent.java:764)
E Unity : at android.app.PendingIntent.getBroadcast(PendingIntent.java:751)
E Unity : at com.mapbox.andro

I know this project is dead but documenting here in case anybody has resolved, or in case I do later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant