question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

getDeviceId returns wrong id

See original GitHub issue

Summary

Version 10.0.2
Affected OS iOS
OS Version iOS16.0

Current behavior

I’m getting iPhone14,5 on my iPhone 13 device from getDeviceId()

Expected behavior

I should be getting iPhone13 since my phone is iPhone 13

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
opayencommented, Nov 10, 2022

This is not a bug, it’s just how Apple names their products (see the GSMArena product page for iPhone 13, in the Misc section they indicate that the model name is iphone14,5).

What you’re after is probably DeviceInfo.getModel()

1reaction
mikehardycommented, Nov 4, 2022

@SeongwoonHong I performed a basic web search for you and found information https://www.theiphonewiki.com/wiki/Models#iPhone

Read more comments on GitHub >

github_iconTop Results From Across the Web

TelephonyManager.getDeviceId(0) returns different results
As you said IMEI/Device Id is tagged to sim slot. For dual SIM phones there are three IMEI values(one for each slot) and...
Read more >
Advanced Topics - Amplitude Developer Center
getDeviceId (). This method can return null if a Device ID has not been generated yet. Note: This is not recommended unless you...
Read more >
Braze Web SDK
Reasons for returning false include a missing API key/base URL, user opt out, and ignored crawler bot activity. isDisabled. isDisabled(): boolean.
Read more >
Troubleshooting Invalid Device ID Errors - Developer Help
Here is a list of common reasons for getting the "Invalid Device ID" or "Failed to get device ID" error: Bad connection between...
Read more >
The device ID <deviceID> is not connected. Connect the ...
Error code: 0x80016002L Problem This issue occurs because the currently connected mobile device has different device ID than the one specified in the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found