Hi,
Iam getting below error sometimes. plugin is available in device. eventhough iam getting this error.
Cannot assign a JavaScript undefined with value undefined to an output parameter of type Text Check the JavaScript node 'RequestTrackingAuthorization' of the action 'RequestTrackingAuthorization'.
i have added as below in "ApplicationLoadEventsOnLoadComplete" please check and advise urgently
Hi @Hari Krishnan R ,
Are you testing on Android?
I had the same problem and looked into the native code, where I discovered that the action "RequestTrackingAuthorization" is available only for iOS.
OutSystems could improve the documentation by including this disclaimer.
Regards,
Hi there,
Thank you both for raising this topic.
We will update the plugin's documentation and also the description of the RequestTrackingAuthorization client action to clarify that it should only be used for iOS.Best regards,Alexandre Jacinto
Does this mean we need to check OS before calling this action? can this not be built into the action itself?
Hi André,
Yes it can, we will take your feedback into consideration.
But for the time being, you should check the platform (Android or iOS) before calling the client action.
Best regards,
Alex Jacinto
Thank you Alexandre for the clarification that is helpful.For others, this is how i solved it (below). I opted for GetOpeatingSystem (from CommonPlugin) as the GetPlatform returns a text string and the description is a little unclear what values to expect in the response (and if they are lower case etc), I prefer the GetOperatingSystem which has a static entity that is clearly defined.
Hey @Hari Krishnan Ramamoorthy this should now be fixed in the latest version of Firebase Analytics Plugin - 2.3.2
@André Pinho you should no longer require the check for operating system in this latest version, as the plugin does it under the hood.
Thank you!