- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello ,
I'm using the intel.xdk.device.platform method to check the version of the device
In debug it is working perfectly, but when compiling to machine the method does not.
- Tags:
- HTML5
- Intel® XDK
Link Copied
6 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What device are you testing on? Did you build the app or testing with app preview? Did you select the intel.xdk.device plugin?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I'm testing with app preview, and i have selected the plugin.
I'm testing in Android and IOS Device.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you post a simplified version of your index.html file that is having the issue?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you want to get device model and OS version you can also use Cordova plugin and just use:
device.model
device.version
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This works for me.
'Device Platform: ' + intel.xdk.device.platform ;
Try removing your .toLowerCase() and see if that helps.
Also, make sure you have enable the Intel XDK Device plugin in your settings.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page