javascript - how to retrieve IMEI no using NativeAndroid/Phone Gap for Blackberry 10 -
i porting android app bb 10.i not able retrieve imei number android porting application ,is there way can use phonegap script file in android app ,by creating local html , using java script retrieve imei number using phone gap using below concept
http://developer.android.com/guide/webapps/webview.html#bindingjavascript
presently, tried using javascript below retrieve imei no
<script type="text/javascript" charset="utf-8" src="js/phonegap.js"></script> </head> <script type="text/javascript"> function showandroidtoast(toast) { android.showtoast('kkkkkkk'); var idno = device.uuid ; var string = device.version; android.showtoast('idno' + string); android.showtoast('string ' + idno); toast = toast + idno; android.showtoast(toast); } </script>
i getting value of null,i testing in bb 10 dev alpha device.
is there other workaround it?
imei not available 3rd party apps. trying info?
the reason ask because published extension blackberry webworks (like phonegap) here retrieves mobile network code (mnc) can identify current carrier. how comfortable building custom-plugins? if so, may able port native code phonegap plugin:
https://github.com/blackberry/webworks-community-apis/tree/master/bb10/deviceinfo
Comments
Post a Comment