i would like to know what steps you do use for your production App at the time of creating a new (unic) ID in an Online DB account.
I figure out it could only use 1 or the other 2 ways below, right ?

1) On device. Pressing "Create new user account" buttton,
- 1rst connect to the onilne DB...
- look for the last free id number..
- Retreives that number to the device Sqlite DB.
- Add new users infos (name,etc) to the new account localy.
- Update the online New "empty account" id with device local complete info.
- Send message to device to confirm : "new user account created"
***
..or
2) "Create a new user account localy with(or)without an Id number (?

- Connect to the Online DB,
- Add the new account to the end of the Account-table.
- retreive the Final-real-id number.
- update the Device local sqlite DB with the Online ID number.
- confirm to user : "new user account created"
***
Is one way safer/better than the other ?
- I want to avoid : Useless Id created with empty accounts info.
- Inconsistent Id numbers between Online Ids and Local Users.
- Any other inconsistency in case of internet interruptions or user canceling Ops., etc..

Tkx