I have added below code to subscribe topics in Firebase:
我在Firebase中添加了以下代码来订阅主题:
Messaging.messaging().subscribe(toTopic: "topics/news")
I have waited for more than 24 hours. it is still not available in firebase console.
我等了24个多小时。在firebase控制台仍然不可用。
1 个解决方案
#1
1
You should not include the topic/
in the topic name.
你不应该在主题名中包含主题。
try
试一试
Messaging.messaging().subscribe(toTopic: "topics/news")
see the example here:
看到这里的例子:
https://firebase.google.com/docs/reference/ios/firebasemessaging/api/reference/Classes/FIRMessaging / c:objc(cs)FIRMessaging(im)subscribeToTopic:
#1
1
You should not include the topic/
in the topic name.
你不应该在主题名中包含主题。
try
试一试
Messaging.messaging().subscribe(toTopic: "topics/news")
see the example here:
看到这里的例子:
https://firebase.google.com/docs/reference/ios/firebasemessaging/api/reference/Classes/FIRMessaging / c:objc(cs)FIRMessaging(im)subscribeToTopic: