Satish Bejgum
Satish Bejgum

Reputation: 223

Get Device IMEI BB10 C++/QML

Is there a way to get IMEI of BB10 using qml or cpp? I don't see any documentation for it.

https://developer.blackberry.com/html5/apis/blackberry.identity.html

This did not help me.

Upvotes: 1

Views: 829

Answers (1)

Kunal
Kunal

Reputation: 3535

There is HarwareInfo API for getting IMEI.

#include <bb/device/HardwareInfo>

QString HardwareInfo::imei()

You will need permission "read_device_identifying_information" to use this API.

And link device lib in pro file, LIBS += -lbbdevice

Upvotes: 3

Related Questions