Skip to content

NativeNotifications sample broken on android 34+ #97

@gentledepp

Description

@gentledepp

2 issues:

  • the app is missing the permissions for notifications (AndroidManifest.xml)
  • the native notification with custom Actions or a Reply Action throws an

Java.Lang.IllegalArgumentException:
com.CompanyName.Avalonia.Labs.Catalog: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles

It turns out, the NativeNotification always requires FLAG_MUTABLE in those cases so the sample works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions