I have to use FCM to receive push notifications on my web application. Now I want to subscribe to a particular topic from the web app. Is there any way to do this? if yes then is it safe the safe way to do?
Or subscribe to a topic should be done from server side?