Could you advices me about how to assign the user_id field for the PUSH / IonicUser registration.
My application can be used with OR without user identification.
So, if the user is not logged, I would like to receive general push notifications ( eg: new information to send to all users )
But I also need to push private notifications to some logged users. Imagine one device, a user log in, I need to show him his private push notifications (and after the app closed if he don’t logout)
But if the user logout, I need to stop to receive his private push notification ( and may be another user will log into the app on the same device )
So, may be I need to firstly registered the device with user_id = device.UUID and when a user login, update the push/ionicUser with the user_id of my new logged user ( eg: his unique email address )
But, what happends if the same user is logged at the same time on 2 devices ? Is it authorized ?
So, I’m confused on how to choose correctly the user_id, any help will be appreciated