1

Closed

isTablet does not work

description

I tried out to redirect my page, if it is visited by a tablet.
 
This could does not work (also tried it with property is_tablet):
 
<redirect firstRequestOnly="true"
          mobileHomePageUrl="~/Mobile/index.html"
          timeout="20" mobilePagesRegex="~/Mobile/|~/Widgets/|~/Produkte/GN/|~/facebook/">

    <locations>
    <!-- Don't redirect requests that have the noredirect query string parameter. -->
    <!--Send tablets to their own home page.-->
    <location name="Tablet" url="~/Default.aspx">
      <add property="IsTablet" matchExpression="true"/>
    </location>
  </locations>
</redirect>
 
<log logFile="~/App_Data/Log.txt"
     logLevel="Info" />
 
<detection>
  <xmlFiles>
    <add name="xml" filePath="~/App_Data/51Degrees.mobi-Lite-2012.04.04.xml" enabled="true" />
  </xmlFiles>
</detection> 
 
 
Any idea?
Closed Jun 11, 2012 at 12:09 PM by jwrosewell
The issue relates to the version of device data in use. IsTablet is part of the Premium data set.

comments

jwrosewell wrote Apr 17, 2012 at 4:00 PM

Are you using the Premium Device data? The IsTablet property is not included in the Lite/free data set. See the following link for more details.

http://51degrees.mobi/products/devicedata

SitePoint wrote Apr 18, 2012 at 10:06 AM

Ah, ok, this is the problem.

Is the Premium Device data IP-depending/ website dependig or can I purchase one year description of the device Data for all our webs?

jwrosewell wrote Jun 11, 2012 at 12:08 PM

The premium data is licenced on a per instance basis. If you have a 100 web sites on the same server using just one copy of the data between them then you'll need one instance. If you have more than one instance/copy of the data then you'll need enough instance subscriptions for each one. Sorry for the delay in coming back to you. I will mark the issue as closed.