aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firebase/Messaging
diff options
context:
space:
mode:
authorGravatar Chen Liang <chliang@google.com>2018-04-26 11:22:25 -0700
committerGravatar GitHub <noreply@github.com>2018-04-26 11:22:25 -0700
commit1476e2bfe5db393ac3b069c1e12d14f91f6b529b (patch)
tree446a1c25aacbe02b6a43ad3fcc8f511c6d81dfbb /Firebase/Messaging
parenta7b4479bce32c3fc18a0c2e6c59bfd58615f301f (diff)
shouldEstablishDirectChannel cannot be replaced by isDirectChannelEstablished as it represents whether user "should" connect instead of whether user "is" connected (#1190)
shouldEstablishDirectChannel cannot be replaced by isDirectChannelEstablished as it represents whether user "should" connect instead of whether user "is" connected
Diffstat (limited to 'Firebase/Messaging')
-rw-r--r--Firebase/Messaging/FIRMessaging.m4
-rw-r--r--Firebase/Messaging/Public/FIRMessaging.h7
2 files changed, 7 insertions, 4 deletions
diff --git a/Firebase/Messaging/FIRMessaging.m b/Firebase/Messaging/FIRMessaging.m
index 8fafab8..339bd7d 100644
--- a/Firebase/Messaging/FIRMessaging.m
+++ b/Firebase/Messaging/FIRMessaging.m
@@ -124,9 +124,7 @@ static NSString *const kFIRMessagingPlistAutoInitEnabled =
@end
@interface FIRMessaging ()<FIRMessagingClientDelegate, FIRMessagingReceiverDelegate,
- FIRReachabilityDelegate> {
- BOOL _shouldEstablishDirectChannel;
-}
+ FIRReachabilityDelegate>
// FIRApp properties
@property(nonatomic, readwrite, copy) NSString *fcmSenderID;
diff --git a/Firebase/Messaging/Public/FIRMessaging.h b/Firebase/Messaging/Public/FIRMessaging.h
index 3ad15da..e58a216 100644
--- a/Firebase/Messaging/Public/FIRMessaging.h
+++ b/Firebase/Messaging/Public/FIRMessaging.h
@@ -291,7 +291,12 @@ NS_SWIFT_NAME(Messaging)
* receiving non-APNS, data-only messages in foregrounded apps.
* Default is `NO`.
*/
-@property(nonatomic, assign, getter=isDirectChannelEstablished) BOOL shouldEstablishDirectChannel;
+@property(nonatomic) BOOL shouldEstablishDirectChannel;
+
+/**
+ * Returns `YES` if the direct channel to the FCM server is active, and `NO` otherwise.
+ */
+@property(nonatomic, readonly) BOOL isDirectChannelEstablished;
/**
* FIRMessaging