-
Notifications
You must be signed in to change notification settings - Fork 69
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
Error when targeting S+ (version 31 and above) #94
Comments
any solution to this problem ? |
I have the same problem, any suggestions? |
Didn't get any answers and didn't get the time to try and fix it myself.. |
Hi ! Same problem for me |
Hello, For now update the file in "node_modules/react-native-get-sms-android/android/src/main/java/com/react/SMSModule.java" with these lines of code The lines of code would look like this: I found this in some forums for the moment it should work, although I understand that it is not a good practice to modify these node_modules files. |
@franzamd Correct PendingIntent.FLAG_IMMUTABLE |
thanks this soluction solved the issues for me |
Hi! I'm getting this error when trying to send a SMS:
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.
Any ideas?
Thanks!
The text was updated successfully, but these errors were encountered: