mapbox-plugins-android icon indicating copy to clipboard operation
mapbox-plugins-android copied to clipboard

Add support for android 12

Open mituldevstree opened this issue 3 years ago • 0 comments

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)

mituldevstree avatar Mar 16 '22 08:03 mituldevstree