Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.
17060 Discussions

Get Plataform

Leandro_M_1
Beginner
978 Views
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.
0 Kudos
6 Replies
John_H_Intel2
Employee
978 Views

What device are you testing on? Did you build the app or testing with app preview? Did you select the intel.xdk.device plugin?

0 Kudos
Leandro_M_1
Beginner
978 Views

Hi, I'm testing with app preview, and i have selected the plugin.

I'm testing in Android and IOS Device.

0 Kudos
John_H_Intel2
Employee
978 Views

Can you post a simplified version of your index.html file that is having the issue?

0 Kudos
Leandro_M_1
Beginner
978 Views

Hi, 

Attached my index.html page.

Thank's.

0 Kudos
Jure_C_
Beginner
978 Views

If you want to get device model and OS version you can also use Cordova plugin and just use:

device.model 

device.version

0 Kudos
John_H_Intel2
Employee
978 Views

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. 

0 Kudos
Reply