Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit ce0a5fb

Browse files
Non-Firebase messaging push token incorrect on iOS 13 #1420
1 parent 1d220a1 commit ce0a5fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/messaging/messaging.ios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export function addBackgroundRemoteNotificationHandler(appDelegate) {
162162
FIRMessaging.messaging().APNSToken = deviceToken;
163163
} else {
164164
// if Firebase Messaging isn't used, the developer cares about the APNs token, so pass it to the app
165-
const token = deviceToken.description.replace(/[< >]/g, "");
165+
const token = deviceToken.debugDescription.replace(/[< >]/g, "");
166166
_pushToken = token;
167167
if (_receivedPushTokenCallback) {
168168
_receivedPushTokenCallback(token);

0 commit comments

Comments
 (0)