Good evening,
Trying to check if person uses mobile or desktop app.
Main reason is due pictures saved in sharepoint only display on desktop. That's why i connected folder to app and made seperate gallery of ThisItem.Thumbnail.Large so images display for mobile app.
Found a formula that will allow me to check weather person is using mobile app or desktop app and with that information to display chosen gallery ( Mobile or Desktop )
Set(varMobileOrDesktop, If(Location.Altitude > 0 Or Acceleration.X > 0, "Mobile", "Desktop"));
This works fine in Mobile app if i don't rotate my screen in landscape view.
If i rotate screen to landscape and then open app it's displaying that i'm in desktop view..
Any ideas what formula would fix this issue?
Thanks