fix: APNS token ids are lowercase ASCII (#46149)
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
parent
cee2c2ceeb
commit
1ba56c8696
3 changed files with 9 additions and 9 deletions
|
@ -180,8 +180,10 @@ static NSDictionary* UNNotificationResponseToNSDictionary(
|
|||
didRegisterForRemoteNotificationsWithDeviceToken:(NSData*)deviceToken {
|
||||
// Resolve outstanding APNS promises created during registration attempts
|
||||
if (auto* push_notifications = electron::api::PushNotifications::Get()) {
|
||||
std::string encoded =
|
||||
base::HexEncode(electron::util::as_byte_span(deviceToken));
|
||||
push_notifications->ResolveAPNSPromiseSetWithToken(
|
||||
base::HexEncode(electron::util::as_byte_span(deviceToken)));
|
||||
base::ToLowerASCII(encoded));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue