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
Aditya Mishra commented
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.