-
Notifications
You must be signed in to change notification settings - Fork 264
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]: Not handling unsupported languages gracefully #1329
Comments
Original issue; OneSignal/react-native-onesignal#1568 |
Thank you for reporting we are investigating |
Hi @magtastic I have followed up on the original issue, where it will be tracked, so I will close this one as a duplicate. |
Same here. In my case backend was sending valid ISO-639-1 value se as language code to https://api.onesignal.com/apps/<APP_ID>/users api, but got "The provided language value is not a supported ISO 639-1 value":
Would be great if all languages code from valid ISO-639-1 list were supported. Otherwise please provide the list of onesignal supported languages. |
What happened?
Calling
https://api.onesignal.com/apps/<APP_ID>/users
with parameters{..."properties":{...,"language": "is-IS"}}
results inTrying to login again results in
but the user is not present on the OneSignal dashboard, nor does he have a
subscriptionId
.Steps to reproduce?
What did you expect to happen?
I expect the server to know that Icelandic has a valid ISO 639-1 code (see: https://en.wikipedia.org/wiki/ISO_639).
I would also expect the error handled better on the client side, e.g. defaulting to english.
OneSignal iOS SDK version
5.0.2
iOS version
13
Specific iOS version
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: