6
Views
2
Comments
Solved
[Cloud Messaging Plugin (Firebase)] Error code  OS-PLUG-FCMS-0018 calling SetBadgeNumber
cloud-messaging-plugin-firebase
Mobile icon
Forge asset by OutSystems
Application Type
Mobile

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



2025-01-10 11-40-52
Pedro Gustavo Bilro
Solution

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.

2020-01-21 17-23-11
Pedro Alves

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. 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.