mapbox / mapbox-plugins-android

Mapbox Android Plugins are a collection of libraries that extend our other SDKs, helping you design powerful mapping features while the plugins handle most of the heavy lifting.
https://www.mapbox.com/android-docs/plugins/overview/
BSD 2-Clause "Simplified" License
241 stars 119 forks source link

Add support for android 12 #1206

Open mituldevstree opened 2 years ago

mituldevstree commented 2 years ago

Need to change pending intent flag

2022-03-16 14:04:48.410 11177-11177/com.sellnu.frekis E/Mbgl-Mapbox: Error occurred while initializing telemetry java.lang.IllegalArgumentException: com.sellnu.frekis: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. 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. at android.app.PendingIntent.checkFlags(PendingIntent.java:375) at android.app.PendingIntent.getBroadcastAsUser(PendingIntent.java:645) at android.app.PendingIntent.getBroadcast(PendingIntent.java:632) at com.mapbox.android.telemetry.AlarmSchedulerFlusher.register(AlarmSchedulerFlusher.java:31) at com.mapbox.android.telemetry.MapboxTelemetry.startAlarm(MapboxTelemetry.java:375) at com.mapbox.android.telemetry.MapboxTelemetry.startTelemetry(MapboxTelemetry.java:369) at com.mapbox.android.telemetry.MapboxTelemetry.enable(MapboxTelemetry.java:113) at com.mapbox.mapboxsdk.module.telemetry.TelemetryImpl.(TelemetryImpl.java:33) at com.mapbox.mapboxsdk.ModuleProviderImpl.obtainTelemetry(ModuleProviderImpl.java:22) at com.mapbox.mapboxsdk.Mapbox.initializeTelemetry(Mapbox.java:167) at com.mapbox.mapboxsdk.Mapbox.getInstance(Mapbox.java:64) at com.sellnu.frekis.mapbox.MapBoxManager.(MapBoxManager.java:35) at com.sellnu.frekis.mapbox.MapBoxManager.init(MapBoxManager.java:40)