Hi guys, here is my solution...
In my case, I just needed my app to know which device it was running on between browser and mobile app, and then display a popup if it is running on mobile. So what I did was this:
OnVisible (screen): // triger //
ClearCollect(collName, true); // here I created a collection with a single value: true //
SaveData(collName, "fileName"); // try to save that collection wich doesn't work on a browser, just mobile app //
Clear(collName); // delete the value I collected previously //
LoadData(collName, "fileName",true); // try to load the data to an emptied collection, if it doesn't load it is because we aren't on mobile //
If( !IsEmpty(collName), "do what i want") // finally, check if the data was loaded corectly and only do the action that i want if so //
This is just a simple idea that worked for me, hopefully, it can be of help to you guys.