android / location-samples

Multiple samples showing the best practices in location APIs on Android.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

this-Aditya opened this issue · comments

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.