this is an architectural problem: what does the device send to your app to 
be able to identify it ? 
If it's a webapp and it is accessed via the browser, and there are no 
running bits on the device itself speaking to your webapp, then the headers 
and the env are the only thing you can rely onto (fortunately, browsers are 
fully isolated). 

Hello, authentication (or fixed ip address)!

On Tuesday, January 14, 2014 8:05:17 PM UTC+1, Paolo Valleri wrote:
>
> Hi, 
> what you posted can be a starting point but it is not enough because it 
> doesn't guarantee that a different android tablet has been purchased. 
> The requirement is, only a well defined set of tablets can access the 
> webapp.
>
>  Paolo
>
>
> 2014/1/14 Leonel Câmara <leonel...@gmail.com <javascript:>>
>
>> I guess you can use something like:
>>
>>     request.user_agent().is_tablet and request.user_agent().dist.name == 
>> 'Android'
>>
>>
>>  -- 
>> Resources:
>> - http://web2py.com
>> - http://web2py.com/book (Documentation)
>> - http://github.com/web2py/web2py (Source code)
>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>> --- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "web2py-users" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/web2py/3Q7izsidMXM/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> web2py+un...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to