I\'m trying to subscribe to a topic in my iOS app, but keep getting the error:
Cannot parse topic name /topics/pets/cnlLksAxmdYP
The /
character is not an allowed character for a topic name.
Characters allowed are:
-
, _
, .
, ~
, %
I can confirm these are the only allowed characters by testing in Android with a topic name of pets/123asd
and the logs shown:
Invalid topic name: Pets/123asd does not match the allowed format [a-zA-Z0-9-_.~%]{1,900}
For iOS, the prefix /topics/
is needed and is still valid. The invalid characters only apply to the topic name you include after the prefix.