Skip to content

Commit ba83b3d

Browse files
committed
fixed ios version identifier
1 parent 14e2626 commit ba83b3d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

messaging/src/ios/messaging.mm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,9 @@ void NotifyListenerSet(Listener* listener) {
222222
(UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert |
223223
UIRemoteNotificationTypeBadge);
224224
[appDelegate registerForRemoteNotificationTypes:allNotificationTypes];
225-
} else if (floor(NSFoundationVersionNumber) < NSFoundationVersionNumber_iOS_10_0) {
226-
// 8.0 <= iOS version < 10.0
227-
// > 10.0 is handled by the if block above
225+
} else if (floor(NSFoundationVersionNumber) <= NSFoundationVersionNumber_iOS_9_4) {
226+
// 8.0 <= iOS version <= 9.4
227+
// >= 10.0 is handled by the first if block above.
228228
UIUserNotificationType allNotificationTypes =
229229
(UIUserNotificationTypeSound | UIUserNotificationTypeAlert | UIUserNotificationTypeBadge);
230230
UIUserNotificationSettings *settings =

0 commit comments

Comments
 (0)