Questions tagged [deviceid]

63 questions
18
votes
2 answers

How to get Device Id in Xamarin Forms?

How can I get Device Unique Id in Android and iOS using c# in Xamarin Froms? I am using Azure Notification Hub for sending Notification. I am referring this blog. But in Android I am not able to find related "Settings"
10
votes
5 answers

Get device id in react native?

how to get device id in react native. I am using create react native not android studio. I am new to this. import DeviceInfo from 'react-native-device-info'; constructor(props) { super(props); this.state = { id: '' } this.onNavigateTo =…
user1731387
4
votes
2 answers

Are Android Device ID's case sensitive?

I have get my device IDs from the system all in lower case letters. Some Device ID app in PLayStore return the device IDs in upper case only. I've heard that these kind of IDs for iOS are case sensitive. Are Android device IDs case sensitive? I…
Ralf Wickum
  • 1,300
  • 5
  • 34
  • 66
3
votes
0 answers

Android API 29 Permission Error READ_PRIVILEGED_PHONE_STATE

I Have created Android App. And Before Api 29 I was get Device IMEI Id. Now Api 29 my methods return null. TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE); if (tm.getDeviceId() != null) { …
3
votes
3 answers

How to get the realy fixed Device-ID in swift?

I use the below code since long time. I have thought it is unique But I have deleted my app and reinstalled it, I get new different Device-ID. if let uuid = UIDevice.current.identifierForVendor?.uuidString { print(uuid) } every new reinstall, I…
user10118085
  • 51
  • 1
  • 3
3
votes
0 answers

How to get Google chromecast device id from PC Chrome browser?

As Per My knowledge, from the Google official API document, we can't get device id(which will be used to identify the Google chromecast device) by JS API on Receiver APP client, but we can call native api to get the device id of chromecast device…
jamesqiao
  • 31
  • 3
3
votes
1 answer

UIDevice.currentDevice().identifierForVendor!.UUIDString Swift 3 migration

I have the following code in swift 2 let deviceid = UIDevice.currentDevice().identifierForVendor!.UUIDString This fails to compile. I tried following suggestions from the auto-fix in xCode and I came up with this. let deviceid =…
Joseph Astrahan
  • 7,050
  • 9
  • 63
  • 126
2
votes
1 answer

PUSH Notifications in Xamarin Forms with Microsoft.AppCenter

Q: I am using XAMARIN Forms with Microsoft.AppCenter. How do I get the firebase device ID using the AppCenter API for sending push notifications to my mobile clients (Android/IOS) from my backend? Frontend (Requirements) 1. XAMARIN Forms 2. …
2
votes
1 answer

Is there an API to find Device ID for Samsung TV in Tizen for React Native apps?

I'm trying to build a Tizen app in a React Native framework. One concern is to find the device id (whether physical tv or an emulator). Consider the below code snippet: class Home extends React.Component { constructor() { super(); …
Manan Shah
  • 346
  • 2
  • 11
2
votes
2 answers

Unique name of android phone

I want to get a unique name or id of the android phone by using the following : String uniqueID = android.provider.Settings.Secure.getString(getContentResolver(), android.provider.Settings.Secure.ANDROID_ID); but it is return null , i do not…
M7M
  • 11,791
  • 3
  • 13
  • 4
2
votes
3 answers

Getting different IDs for same device. Why?

I am getting different Android IDs for same device for 2 apps in spite of they are being signed with same keystore. This problem is occurring only in Android Oreo OS. Can anyone help me why there are 2 different Android IDS generated? The method i…
GladiatorAsif
  • 66
  • 1
  • 5
2
votes
2 answers

getting device id in android

I have found two ways to get device id in android but I do not which one of them better and what are the differences between them Method 1 public static String getDeviceId2(Context context) { String androidId = Settings.Secure.getString( …
Amira Elsayed Ismail
  • 8,304
  • 26
  • 74
  • 144
1
vote
0 answers

Generate UUID in Android Studio and use the same UUID after reinstalling the App

In this project that I'm working on, I want a unique ID for a Device that is using my App. I've decided to use UUID (Universally Unique Identifier) in my project. Basically what I want is to assign this UUID to any files generated by my App. My…
ManuKovera
  • 23
  • 1
  • 6
1
vote
1 answer

How to get device Id in expo react native app

I am implementing API to connect app with server. I have to use deviceId there. As mentioned in here we can use third party library 'react-native-device-info'. But when I am using it I am getting errors as attached screenshots. As per error it's…
1
vote
1 answer

Settings.Secure.ANDROID_ID different in build APK and Signed APK why?

String androidId = Settings.Secure.getString(getContentResolver(), Settings.Secure.ANDROID_ID); I'm using this to take android id. Doubt is ANDROID_ID how could be different for signed apk and build apk of same device? I need…
1
2 3 4 5