In the last 2 weeks he had 6 error events when calling SetBadgeNumber client action from the plugin.
We are getting the error: "Cannot assign a JavaScript string with value OS-PLUG-FCMS-0018 to an output parameter of type Integer Check the JavaScript node 'SetBadge' of the action 'SetBadgeNumber'. "
What is the meaning of the error code OS-PLUG-FCMS-0018?
Thanks
Hey @Pedro Alves, thanks for posting this.
The error you're getting seems to be a bug in the plugin itself. "OS-PLUG-FCMS-0018" is a string and seems like the plugin is trying to assign that error code string to an integer instead of a string.
As for what the "OS-PLUG-FCMS-0018" error means, it's that SetBadgeNumber is only available on iOS, it's not available on Android. Are you calling SetBadgeNumber in Android apps?
The docs are probably missing a reference to the available error codes that the plugin can return, which would make this clearer.
Thanks for your reply. Yes, I agree this is a bug in the component itself. When the code in the SetBadge node is not successful it should not perform the assign.
However, I was more curious about the error code because I simply couldn't find any reference to the errors list, which would be extremely useful. But you did answer my question. The action is being called both in iOS and Android but most of our user base has iOS devices so we don't get this error often.
Thanks for the help.
Hey @Pedro Alves, the error you're receiving should not be fixed in the latest plugin Version - 4.4.5.
Keep in mind that you'll still receive the error code on Android, but now you receive it directly in `Error` Structure, instead of the client action not returning a result and displaying an error alert.
Let us know if you have any questions, thank you!