This is a migrated thread and some comments may be shown as answers.

Testing for non-supported devices and browsers

1 Answer 30 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Yrjo
Top achievements
Rank 1
Yrjo asked on 14 Jan 2013, 11:02 AM
I am developing only for mobile devices, but allowing my clients a preview apps in web environment. I'd like to allow web-access to supported mobile devices (iOS and Android in my case), but not to other devices or desktop browsers. How and where should I implement this feature in a Kendo Mobile application, thanks!

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 15 Jan 2013, 10:59 AM
Hi Yrjo,

The described access policy is out of the scope of the Kendo application widget's functionality. Generally, such policy should be executed before the application widget is initialized. You can use the various generic client-side browser detection tools available (e.g. navigator.userAgent or jQuery.browser) or some provided by Kendo UI, for example:

kendo.support.mobileOS.name
kendo.support.mobileOS.device
kendo.support.mobileOS.browser

On the other hand, if restricting access to your application is important, I advise you to use some login feature or HTTP access restriction. This is the only reliable approach, as browsers' user agent strings can be faked.

Greetings,
Dimo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
General Discussions
Asked by
Yrjo
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or