AltBeacon / android-beacon-library

Allows Android apps to interact with BLE beacons
Apache License 2.0
2.83k stars 836 forks source link

Add immutable flag to pending intents for Android 12 #1040

Closed nbadal closed 2 years ago

nbadal commented 3 years ago

As required in Android 12. As far as I can tell none of these intents need to be mutable, but let me know if that's wrong!

CanYumusak commented 2 years ago

This PR will lead to the app no longer crashing due to missing flags but does not take into account the new permissions for Android 12. Also the StartupBroadcastReceiver should be explicitly marked as exportable.

These should be taken care of also (in a separate PR I guess?)

davidgyoung commented 2 years ago

Thanks, @nbadal. I have merged this into #1043 with other Android 12 changes. @CanYumusak please see discussion of permission changes there.