![]() ![]() The code works, but the App then needs in adition the right READ PHONESTATE, that you have to handle completely yourself in your app.Īs a correct and user-friendly handling is not easy to implement and needs a lot of additional effort, I dont use that for now (as I don't need it mandatory yet). forms (3.1) App (whereby I only use the Android App yet) and have implemented the code below. The only way, I found, is over the telefonyManager and that needs the "bad" right READ PHONESTATE, that you have to handle your own in your app (thanks to changes in Android marshmallow (Android 6). ![]() The AndroidID is also an unique ID, but unfortunately not the IMEI (and it also can't be converted to the "real" IME!Īlso the ACR.DeviceInfo plugin seems to return the AndroidID (instead of thee IMEI). I wanted to query the IME in my App and store it in the central database. string deviceIdentifier = DependencyService.Get().GetIdentifier() ![]() Serial = NSString.FromHandle(serialNumber) IntPtr serialNumber = IORegistryEntr圜reateCFProperty(platformExpert, key.Handle, IntPtr.Zero, 0) NSString key = (NSString) "IOPlatformSerialNumber" Uint platformExpert = IOServiceGetMatchingService(0, IOServiceMatching("IOPlatformExpertDevice")) Private static extern int IOObjectRelease(uint o) Private static extern IntPtr IORegistryEntr圜reateCFProperty(uint entry, IntPtr key, IntPtr allocator, uint options) Private static extern IntPtr IOServiceMatching(string s) Private static extern uint IOServiceGetMatchingService(uint masterPort, IntPtr matching) Return Convert.ToBase64String(myDeviceId) Īndroid : īyte myDeviceId = (byte).GetValue("DeviceUniqueId") User66025 want to make use of dependency servicesĮnable ID_CAP_IDENTITY_DEVICE in capabilities. Nokia g300 unlock code Power on your Nokia device without a SIM card, and enter 06 using the keypad/dialler to show the IMEI on-screen. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |