We've been embedding krpano in our apps using Cordova for a while now, and never had any issues with it. However, we're now struggling to get VR working on Android.
If we upload the content to web, it's correctly detecting the device. However, as soon as it's in the app it's failing and reporting an unknown device.
I can't find much documentation about how the device detection feature works, other than a mention that it works off user agent on Android. I've done some testing and the user agent is slightly different. Not by much, but perhaps enough to fool whatever check is in place? (There's an extra "; wv" in the build and and extra "Version/4.0").
Chrome browser:
Mozilla/5.0 (Linux; Android 7.0; SM-G920F Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.84 Mobile Safari/537.36
Chrome in Cordova:
Mozilla/5.0 (Linux; Android 7.0; SM-G920F Build/NRD90M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/62.0.3202.84 Mobile Safari/537.36
And I'm not sure if it counts, but krpano also returns a different screen size depending on the method used:
Screen Size
- Krpano running in browser: 5.1
- Krpano running in app: 5
- Cordova screen detection plugin: 5.06
I'm guessing this is a complicated question that's outside the scope of what you'd usually deal with here, but any suggestions as to how we might be able to make this work (possibly by fooling the device detection?) would be greatly appreciated.