Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NativeNotifications sample broken on android 34+ #97

Open
gentledepp opened this issue Dec 9, 2024 · 0 comments · May be fixed by #98
Open

NativeNotifications sample broken on android 34+ #97

gentledepp opened this issue Dec 9, 2024 · 0 comments · May be fixed by #98

Comments

@gentledepp
Copy link

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.

gentledepp added a commit to gentledepp/Avalonia.Labs that referenced this issue Dec 9, 2024
@gentledepp gentledepp linked a pull request Dec 9, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant