Get Device IMEI BB10 C ++ / QML
Is there a way to get IMEI BB10 using qml or cpp? I don't see any documentation for this.
https://developer.blackberry.com/html5/apis/blackberry.identity.html
It didn't work for me.
+1
source to share
1 answer
There is a HarwareInfo API to get the IMEI.
#include <bb/device/HardwareInfo>
QString HardwareInfo::imei()
You will need permission "read_device_identifying_information"
to use this API.
And connect the lib device in the pro file, LIBS += -lbbdevice
+3
source to share