Pagina 1 di 1

Where to get a unique app-id

Inviato: 23 feb 2024, 19:44
da Lilonu
In a watchface's json file one has to define an appid. Where would I get such an appid, as it surely must be unique?

Re: Where to get a unique app-id

Inviato: 24 feb 2024, 03:35
da asoo
Lilonu ha scritto: 23 feb 2024, 19:44
In a watchface's json file one has to define an appid. Where would I get such an appid, as it surely must be unique?
If you mean the "appId" defined in the APP.json file
You can set the numbers as you want, with the same number of digits as before, but don't duplicate the id of another watch face you've already used, because if the id value is the same as the previous watch face, When you sync to your watch, it will replace the old watch face that use the same id.

Re: Where to get a unique app-id

Inviato: 24 feb 2024, 13:41
da Lilonu
Thanks, asoo.
I found that out, too ;-), but that is exactly what I aim to avoid: That I install an official app/watchface that by chance uses the appid I arbitrarily chose for my own app/watchface. I know the chances a small, but nevertheless. So how to get one that is in fact unique? Would that be only through the official publish process of zepp os? - I wouldn't want to go through that as my projects are internal only.

What I currently do is to (re)use the appid of a watchface from here - and remember to never install the original. But there must be another, better way.

Re: Where to get a unique app-id

Inviato: 24 feb 2024, 14:10
da asoo
Lilonu ha scritto: 24 feb 2024, 13:41
Thanks, asoo.
I found that out, too ;-), but that is exactly what I aim to avoid: That I install an official app/watchface that by chance uses the appid I arbitrarily chose for my own app/watchface. I know the chances a small, but nevertheless. So how to get one that is in fact unique? Would that be only through the official publish process of zepp os? - I wouldn't want to go through that as my projects are internal only.

What I currently do is to (re)use the appid of a watchface from here - and remember to never install the original. But there must be another, better way.
I think it's also difficult because the ID is probably assigned by Zepp and it wouldn't be easy to access this information. So I thought of a random method by myself. Right now this is probably the most appropriate method.

If you find a better way than this, please let me know. Thank you. ;)

Re: Where to get a unique app-id

Inviato: 04 mag 2024, 11:35
da SashaCX75
When you create a watch face on https://watchface.zepp.com/designer, it is assigned an identifier. You can create an empty watch face and use its identifier in your projects. But I think just writing a random identifier is easier, and the probability of coincidence with an already existing one is very small.