aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firebase/Messaging
diff options
context:
space:
mode:
authorGravatar Ryan Wilson <wilsonryan@google.com>2018-04-04 18:34:28 -0400
committerGravatar GitHub <noreply@github.com>2018-04-04 18:34:28 -0400
commit4416b60446029d7be5443a48b4532598758bdf58 (patch)
tree21ceeb5d4ed6fb929f4286de5844efbd5e6347a6 /Firebase/Messaging
parent465e9a1f0ea9dc552a5bf4afbb164a433c6b5e62 (diff)
Cherry Pick of comments and changelog for M23 (#1028)
* updates the changelog for pending release (#1025) * updates the changelog for pending release * addresses comment * Fix the comments for subscribe to topic (#1026)
Diffstat (limited to 'Firebase/Messaging')
-rw-r--r--Firebase/Messaging/Public/FIRMessaging.h16
1 files changed, 5 insertions, 11 deletions
diff --git a/Firebase/Messaging/Public/FIRMessaging.h b/Firebase/Messaging/Public/FIRMessaging.h
index f56b7ab..d3fdf59 100644
--- a/Firebase/Messaging/Public/FIRMessaging.h
+++ b/Firebase/Messaging/Public/FIRMessaging.h
@@ -469,13 +469,10 @@ NS_SWIFT_NAME(Messaging)
- (void)subscribeToTopic:(nonnull NSString *)topic NS_SWIFT_NAME(subscribe(toTopic:));
/**
- * Asynchronously subscribe to the topic. Adds to the pending list of topic operations.
- * Retry in case of failures. This makes a repeated attempt to subscribe to the topic
- * as compared to the `subscribe` method above which tries once.
+ * Asynchronously subscribe to the provided topic, retrying on failure.
*
- * @param topic The topic name to subscribe to. Should be of the form
- * `"/topics/<topic-name>"`.
- * @param completion The completion that is invoked once the unsubscribe call ends.
+ * @param topic The topic name to subscribe to, for example, @"sports".
+ * @param completion The completion that is invoked once the subscribe call ends.
* In case of success, nil error is returned. Otherwise, an
* appropriate error object is returned.
*/
@@ -490,12 +487,9 @@ NS_SWIFT_NAME(Messaging)
- (void)unsubscribeFromTopic:(nonnull NSString *)topic NS_SWIFT_NAME(unsubscribe(fromTopic:));
/**
- * Asynchronously unsubscribe from the topic. Adds to the pending list of topic operations.
- * Retry in case of failures. This makes a repeated attempt to unsubscribe from the topic
- * as compared to the `unsubscribe` method above which tries once.
+ * Asynchronously unsubscribe from the provided topic, retrying on failure.
*
- * @param topic The topic name to unsubscribe from. Should be of the form
- * `"/topics/<topic-name>"`.
+ * @param topic The topic name to unsubscribe from, for example @"sports".
* @param completion The completion that is invoked once the unsubscribe call ends.
* In case of success, nil error is returned. Otherwise, an
* appropriate error object is returned.