Hi all,
I am developing an app which I want to make work in the browser as well as on-the-go.
There isn't a proper way to detect whether SaveData() and LoadData() are available, and they cause an error if I try to run them on the browser. (I have already posted a idea for improvement in this regard: https://powerusers.microsoft.com/t5/Power-Apps-Ideas/Identify-where-the-app-is-running-with-RunTime-IsBrowser-Runtime/idi-p/403520)
It seems that the functions for acceleration, compass and GPS data kinda-sorta work on the browser though, and I am trying to do a hack to indirectly detect whether I can SaveData() and LoadData().
Location.Altitude is always Blank on the browser, but it correctly fills with real-time data on devices.
(tested on: Pocophone F1, Samsung Galaxy Tab S3)
I tried to use Location.Altitude on the OnStart() event, however it is blank at that time, all the time, in the tested platforms.
I can sometimes detect it afterwards with a Screen's OnVisible(), but it is unreliable.
Although rarely, the unreliable event caught the Location.Altitude blank in the OnVisible event.
I would need a way to guarantee that I can get an app variable that is always blank on the web browser, but has a different value on mobile, to be able to avoid SaveData and LoadData, but know when I can use them 100% of the time the platform supports it.