Skip to content
This repository was archived by the owner on Dec 13, 2025. It is now read-only.
This repository was archived by the owner on Dec 13, 2025. It is now read-only.

Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE #54

@OmarLkhalil

Description

@OmarLkhalil

if you are on S+ android api you may get this error so in notification helper you can update pending intent to check if current sdk is higher than S api

val pendingIntent: PendingIntent = PendingIntent.getActivity(
context,
0,
intent,
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
FLAG_IMMUTABLE
} else {
0
}
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions