I am currently using the firebase notifications console to send notifications to specific android devices using topics. Is it possible to link the topics that the device is subscribed to with the user account that is logged in through firebase authentication.
Ideally I want it so that the when the user logs in, a request can be sent to determine all the topics the user was previously subscribed to on a different device and subscribe to the same topics on this device. Similarly when the user logs out, the device should unsubscribe from all the topics.
I would prefer if this could be done without having to write any server side code.