Open ermancibo opened 1 year ago
I have the same problem here. Everything work fine but when the notification comes, app crashed.
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.
thank you @55nhatnam55 for a solution. @ermancibo please let us know if this does not resolve the issue.
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?
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?
Relevant log output
No response
Code of Conduct