-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Description
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 to self.pubsub with the completion without a null check:
| [strongSelf.pubsub subscribeToTopic:normalizeTopic handler:completion]; |
There's this line:
| #if !TARGET_OS_WATCH |
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.