In the docs it says
Backendless automatically links registered device with the currently logged in user. Suppose your app registers the device for push notifications. If there is a logged in user at the time when the device is being registered, Backendless creates a relation between the device and the user in the database (via a 1:1 relation):
That works well, but if the user is not logged in at the time of deviceRegistration (in the App Delegate method - didRegisterForRemoteNotificationsWithDeviceToken) is there a way I can call this method again AFTER a user has logged in or registered so that the relationship is established between the device and the user at runtime. It looks to me the only way currently to establish the relationship on backendless is for the user to stop the application and then restart the application thus triggering the App Delegate method to be triggered again with the newly logged in user.
This may not be a pure backendless question, but perhaps you can guide me on how I could update the DeviceRegistration table to be updated with this user relationship if I have the scenario the user logs in. I really would like to be able to say something like ‘hey Backendless the user has logged in can you please update the deviceRegistratin table accordingly…’
Hopefully I have explained that well enough?!