Hi,
Does KRPano support Amazon's Kindle Fire (Android 2.3 Gingerbread)?
I have done some investigation/implementation and found that Amazon's Kindle Fire uses its own browser (Amazon Slik) rather than Android's default browser.
Android 2.3 supports Flash so ideally KRPano should be redirected to Flash Version but it is redirecting to HTML5 version, Strange!. HTML5 is not fully supported (CSS 3D transform) by Amazon Silk browser and that's why it is creating problem with panorama.
I have used following code to redirect but it doesn't work. I have used two separate XML for Flash Version and HTML5 Version. I have made some client specific changes related to iOS and Android in both XML that's why i have used two XML.
QuoteDisplay More
var ua = navigator.userAgent.toLowerCase();
if(viewer.isDevice("iPhone|iPad|iPod")){
viewer.addVariable("xml", "flash.xml");
} else if(ua.indexOf("silk") >= 0) {
viewer.addVariable("xml", "flash.xml");
} else{
viewer.addVariable("xml", "html5.xml");
}
How can i detect user agent of Kindle Fire and redirect the user to flash version instead of HTML5?
OR
Is there any other way to redirect the Kindle Fire users to Flash Version of KRPano?
Please help me as soon as possible.
--
Thanks
Pratiks