Skip to content

Topics do not work with watchOS #6160

Closed
@jlandrum

Description

@jlandrum

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:


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.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions