location-samples
location-samples copied to clipboard
PendingIntent.FLAG_CANCEL_CURRENT is not giving proper output on API version 31 or higher in Google Sleep API.
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.