Azure Sphere: Unique Device ID at Application Layer - azure-sphere

I am working on an Azure Sphere project and would like to programmatically get the unique device ID, preferably the ID generated by the device when the device is claimed - is this possible, and if so how?
thank you

getting the device ID programmatically on the device ID is not supported on Azure Sphere today. The challenge with supporting this is that using device ID for authentication is not encouraged compared to the Device Authentication and Attestation (DAA) certificate.
Can you provide some details on why you need the device ID?

Related

Bluetooth ID not same as scanned by other devices

I am working on an app that scans for nearby Bluetooth devices then checks the database if the user is present with Bluetooth ID If it's present display it to the other user nearby.
but the issue is when the person installs the app we get the Bluetooth ID and store it in a database but after that while scanning the Bluetooth ID changes.
Bluetooth id in the local device is not the same as the scanned ( by another device)
is there any way we can do this other than Bluetooth ID or how can we get a unique ID - I am Using react-native-ble-manager
Since many people/developers have used the BD_ADDR to identify and track mobile devices and their owners, mobile operating systems today use dynamically assigned BD_ADDRs that change frequently. This is done to protect the privacy of mobile device users.
If you want to track mobile devices, you could write an application that transmits a unique ID that allows you to track those devices ...

Is it possible to host multiple streams at the same time in agora.io?

i'm building an app that lets users live stream and many users could be live streaming at the same time, is that possible with agora.io? I'm using the web version with vue.js.
Agora's Platform supports these features. In the SDK, each channel represents a live stream, which can have up to 17 broadcasters and 1m audience members.
The Agora SDKs allow developers to build apps that implement channels as needed. Within the Agora platform, users are matched by AppID and Channel name, so your app will initialize the engine with the AppID, and then join channels by passing in the channel name as a string. (See guide on how to join/leave channel)

when I call Tuya Smart API, how to resolve it if the calling interface has an error code: 1106, permission deny?

I checked the device is paired with Tuya Smart App, and then use the device Id in Tuya Smart APP for control; I confirm the Id of the device to be controlled is correct.
I tried it a few times with the engineer,there are several situations:
The device to be controlled is not an OEM App created by the developer on the Tuya Open Platform; or the Tuya Smart APP is used to pair the device and then control the device through an interface call.
solution:
First check if the device is paired with Tuya Smart APP, and then use the device Id in Tuya Smart APP for control;
Then check whether the Id of the device to be controlled is correct and whether it is from an OEM APP created by its own developer account or an APP developed based on the SDK;
In the end, you need to make sure that the device and product created by the OEM APP created under your developer account can be controlled through the cloud-cloud docking API call.
The device requested to be controlled has been removed, restored to factory settings, or re-configured to the network.
solution:
If the device has been removed, please re-configure the network and add it in the APP;
Re-obtain the device list and refresh the device ids to be controlled.
Interface parameter passing error.
solution:
Check if the following parameters are correct:
The device id is wrong. Note that the device id is not uuid.
The area url is wrong. Pay attention to the area where the device is paired. At the same time, call the interface address of the corresponding area.
there are 3 different api explorer calls to retrieve the status, only one works for me: https://openapi.tuyaeu.com/v1.1/iot-03/ (General Device Management -> Get Device Information)

Apple ID retrievable from App download within Cocoa Touch

Hi
I'm working on an iphone app that needs to be maintain a somewhat unique identifier per download. Is there a way to retrieve either the Apple ID used to download the App or another identifier I can use to link all devices with that download to a remote database/service?
Basically I want a single instance of my custom-generated data sitting on whatever device is linked to a certain Apple ID. If iTunes signs any App that you download, using that checksum would also be an option.
Any thoughts?
If you use IAP(In App Purchase), you can tie a users purchase to a single receipt, and verify that receipt against Apple's servers.
For App store purchases, as opposed to IAP, Apple allows, and pretty much forces a developer to allow their App store apps to run identically on as many devices as a customer can put their iTunes account on, with no information available to the app about whether this was the customer's first install or their Nth. If that business model doesn't work for you, don't put the app for sale in the App store.
As far as I am aware, there is absolutely no way to get access to the current signed-in Apple ID on the device. Your only real option is to maintain your own username/login combo that the user has to enter on each device they own.
I don't believe you can get the Apple ID, but you can however get the current device's ID via the UIDevice uniqueIdentifier method.
For example:
UIDevice *ourDevice = [UIDevice currentDevice];
NSString *uniqueIdentifier = [ourDevice uniqueIdentifier];
However, you should note the following (emphasis mine) from the above linked document:
A device’s unique identifier
(sometimes abbreviated as UDID for
Unique Device Identifier) is a hash
value composed from various hardware
identifiers such as the device serial
number. It is guaranteed to be unique
for each device. The UDID is
independent of the device name. For
devices that use a SIM (subscriber
identity module) card, the UDID is
independent of the SIM card.
For user security and privacy, you
must not publicly associate a device’s
unique identifier with a user account.
You may use the UDID, in conjunction
with an application-specific user ID,
for identifying application-specific
data on your server.

Allow user to create account on one device and use that account on others

I want to make an application that has some views for information display. If I install my app on my iPhone then it should display the info. If I then install that app on my iPad then the app should recognize the device and display the info related to my account.
Is there any way to find the single user of two devices without the user's iTunes credentials, or is it possible to generate a key that can identify the common user of both devices?
No, currently there is no way to associate multiple devices to a single user owning those devices given the information you've provided.
However, if you added, "the information I want to display in the views, pertains to the same user account in Game Center for both devices", then you could use the player's identifier from Game Kit API.
https://developer.apple.com/game-center/
This is being added well after the fact, but:
You could use iCloud APIs to accomplish this. These are distinct from iTunes credentials, but obviously the same type of prerequisite in that the user must have an account and it's not under your control.