diff options
author | Chen Liang <chliang@google.com> | 2018-06-19 14:08:53 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-19 14:08:53 -0700 |
commit | 69ccd6d8b18b833acfd47ce251f05e94000e6ff5 (patch) | |
tree | c6f9f3ac6632940022cbd19c17f34fe0b8390536 /Firebase/Messaging/FIRMessagingPubSub.h | |
parent | fb9482c303a3f53c2f16eb41a8614f2d4302a9e3 (diff) |
Corrected the deprecation warning when subscribing to or unsubscribing from a topic (#1425)
Diffstat (limited to 'Firebase/Messaging/FIRMessagingPubSub.h')
-rw-r--r-- | Firebase/Messaging/FIRMessagingPubSub.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Firebase/Messaging/FIRMessagingPubSub.h b/Firebase/Messaging/FIRMessagingPubSub.h index 1c615d1..ebb4ca8 100644 --- a/Firebase/Messaging/FIRMessagingPubSub.h +++ b/Firebase/Messaging/FIRMessagingPubSub.h @@ -139,6 +139,15 @@ NS_ASSUME_NONNULL_BEGIN + (NSString *)addPrefixToTopic:(NSString *)topic; /** + * Removes the "/topics/" prefix from the topic. + * + * @param topic The topic to remove the prefix from. + * + * @return The new topic name with the "/topics/" prefix removed. + */ + ++ (NSString *)removePrefixFromTopic:(NSString *)topic; +/** * Check if the topic name has "/topics/" prefix. * * @param topic The topic name to verify. |