Hi All,
If it is possible to use Javascript, navigator.userAgent to change the global variable "device.mobile" to true? Since we are experiencing an issue of an in-app browser which can't load the correct size of layout.
Thanks a lot.
Hi All,
If it is possible to use Javascript, navigator.userAgent to change the global variable "device.mobile" to true? Since we are experiencing an issue of an in-app browser which can't load the correct size of layout.
Thanks a lot.
simulatedevice, iphone
https://krpano.com/docu/html/#startupvars.simulatedevice
This is a good question for klaus. PM him directly using the message tool in the forum as he tends not to reply to replied posts.
My question is whether this setting is only for the settings on the documentation or it can be used for all the devices settings.
https://krpano.com/docu/xml/#hotspot.devices
It would be nice to have complete control of the device settings for testing/graphical layout.
Hi,
no, changing or faking the device setting is not possible.
Is your 'in-app browser' sending a fake user-agent?
If it's about the default half stagescale for mobile devices, see the example here for scaling it up:
https://krpano.com/docu/actions/#stagescale
Best regards,
Klaus
Hi,
no, changing or faking the device setting is not possible.
Is your 'in-app browser' sending a fake user-agent?
If it's about the default half stagescale for mobile devices, see the example here for scaling it up:
https://krpano.com/docu/actions/#stagescaleBest regards,
Klaus
Hi Klaus,
Thanks for your reply.
We are sending the link of our built krpano viewer to an Instant Messenger name Weixin (A Chinese Apps). However, their default USER AGENT will return "micromessenger". Seems that this make the viewer can't detect it is running on a mobile.
If there are any possible solution for an in-apps browser to load the mobile version?
Thanks a lot.
Best regards,
Cloudion
Hi,
a correct user-agent for Android mobile devices would need to include the strings 'Android' and 'mobile'.
But I will considering adding possibilities for faking the user agent or device detection in future versions.
Best regards,
Klaus
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!