-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Topics do not work with watchOS #6160
Comments
This comment has been minimized.
This comment has been minimized.
Thanks @jlandrum Good catch on the issue. Yes the topic subscription should be working on watchOS and the macro is not correctly set. |
If you attempt to sub to a topic, the callback never calls indicating a success or failure.
The reason is due to
self.pubsub
being undefined, and a message is being sent toself.pubsub
with the completion without a null check:firebase-ios-sdk/FirebaseMessaging/Sources/FIRMessaging.m
Line 781 in ad06c60
There's this line:
firebase-ios-sdk/FirebaseMessaging/Sources/FIRMessaging.m
Line 273 in ad06c60
Which blocks initialization of
self.pubsub
- however when this is removed, there appears to be no problems. Topics work fine on a standalone watchOS after removing these preprocessor statements.Is there any particular reason as to why? I'm assuming something else is not working properly with notifications is why - I will gladly help update the code if need be to get this working, as topics are something we need on our end.
The text was updated successfully, but these errors were encountered: