How to get IMEI number in PhoneGap?

前端 未结 8 552
北海茫月
北海茫月 2020-12-03 11:30

I\'m developing a PhoneGap Android mobile application using jQuery, JavaScript and HTML. I want to get the mobile IMEI. I have tried this code from this Tutorial.

I

8条回答
  •  误落风尘
    2020-12-03 11:54

    You cannot access the IMEI via html or JavaScript. But you can write an app which reads the IMEI for you.

    Just call getDeviceId(). Don't forget that you need the READ_PHONE_STATE permission in your manifest.

提交回复
热议问题