question

dinesh avatar image
dinesh asked sam Deactivated edited

how to get current or logged in device ID

How we can find logged in or current device id? do we have any api that will return us logged in device id?
Developer Pay API
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

sam avatar image
sam Deactivated answered
Do you mean the device id of where the app is running?
https://community.clover.com/questions/1188/how-do...

android.os.Build.SERIAL   #returns C00000000000
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

dinesh avatar image
dinesh answered sam Deactivated edited
Yes, I need device name where app is running. once we have this serial number can we get device name based on Id?
3 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

sam avatar image sam commented ·

If by device name, you mean eg. Station, Mini, etc.

The second digit indicates this:

C010 - Station

C020 - Mobile

C030 - Mini

C040 - Flex

0 Likes 0 ·
dinesh avatar image dinesh commented ·

@Sam Thanks for your response.
can we give custom name to the device and fetch that name, using sdk or any api?

Actually I need to fetch custom register/device name in my app but I am not sure how we can give custom name to our device/register and how to fetch that name.

0 Likes 0 ·
sam avatar image sam dinesh commented ·

@dinesh

I see what you mean. There's no way of getting the name from the SDK currently. Your current solution is to find the serial or device Id:

mMerchantConnector.getMerchant().getDeviceId()

Then, filtering the serial/id using the v3/../devices REST API:

GET /v3/merchants/{mid}/devices?filter=id=2239a2a3-0000-0000-0000000000

0 Likes 0 ·

Welcome to the
Clover Developer Community