android / location-samples

Multiple samples showing the best practices in location APIs on Android.
Apache License 2.0
2.7k stars 2.77k forks source link

PendingIntent.FLAG_CANCEL_CURRENT is not giving proper output on API version 31 or higher in Google Sleep API. #335

Open this-Aditya opened 1 year ago

this-Aditya commented 1 year ago

As per new guidelines: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. This needs to be updated in the sleep receiver of Google Sleep API to receive proper output in newer android devices.