I'm able to send global notifications using Firebase messaging to all devices using the Firebase console. Now I'm trying to target certain devices by using topic subscription.
In my code I'm subscribing to topics that might not exist yet using the code:
FIRMessaging.messaging().subscribe(toTopic: "/topics/topic1")
However, after this line runs I don't see any topics added in the Firebase console:
Does anybody know if I'm doing anything wrong? Note the code I'm running is in a random viewController
in a part of my app where I want to subscribe the user to a certain topic.