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

[Bug]: com.onesignal.GenerateNotification.getNewActionPendingIntent #354

Open
2 of 3 tasks
ermancibo opened this issue Dec 22, 2022 · 3 comments
Open
2 of 3 tasks
Assignees

Comments

@ermancibo
Copy link

What happened?

com.onesignal.GenerateNotification.getNewActionPendingIntent
GenerateNotification.java, line 195
java.lang.IllegalArgumentException: 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.

Steps to reproduce?

installed nuget Com.OneSignal v 3.10.6

What did you expect to happen?

when comes notification apps going to crash

OneSignal Xamarin SDK version

3.10.6

Which platform(s) are affected?

  • iOS
  • Android

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@55nhatnam55
Copy link

I have the same problem here. Everything work fine but when the notification comes, app crashed.

@55nhatnam55
Copy link

Hi @ermancibo, I have fixed the problem by added a package Xamarin.AndroidX.Work.Runtime 2.7.0. I think the problem come when the migrate to AndroidX has some errror.

@brismithers
Copy link
Contributor

thank you @55nhatnam55 for a solution. @ermancibo please let us know if this does not resolve the issue.

@brismithers brismithers self-assigned this Jan 9, 2023
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

No branches or pull requests

3 participants