I need it asap
Thanks [import]uid: 134964 topic_id: 24744 reply_id: 324744[/import]
Can you provide more information about what you need? If you need the device’s carrier (ATT, Verizon, etc.), that’s not available. The only information available is from the system.getInfo API. [import]uid: 7559 topic_id: 24744 reply_id: 100356[/import]
also discussed in http://developer.anscamobile.com/forum/2011/04/30/ads-revenue-examples
The issue is that web apis typically want the useragent of the device.
eg Useragent for iPhone is = “Mozilla/5.0 (iPod; U; CPU iPhone OS 4_3_3 like Mac OS X) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8J2 Safari/6533.18.5”
but how does Corona get this useragent string, there doesnt seem to be a system.getinfo
I’ve attempted to pull together a useragent generator in my lib-http library (see https://github.com/open768/library/blob/master/lib-http.lua)
[import]uid: 74338 topic_id: 24744 reply_id: 108400[/import]