question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

iOS13 push notifications not delivered without apns-push-type header set

See original GitHub issue

This not actually an issue, but a placeholder to make sure you don’t file an issue related to iOS13 until after you’ve read the following: https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/sending_notification_requests_to_apns?language=objc

Specifically inside of the documentation on header-fields: apns-push-type: (Required when delivering notifications to devices running iOS 13 and later, or watchOS 6 and later. Ignored on earlier system versions.) The type of the notification. The value of this header is alert or background. Specify alert when the delivery of your notification displays an alert, plays a sound, or badges your app's icon. Specify background for silent notifications that do not interact with the user. The value of this header must accurately reflect the contents of your notification's payload. If there is a mismatch, or if the header is missing on required systems, APNs may delay the delivery of the notification or drop it altogether. For information about configuring notification alerts, see Generating a Remote Notification. For more information about sending background notifications, see Pushing Background Updates to Your App.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

1reaction
HanliTheroncommented, Oct 23, 2019

Thanks Matt, it seems it is the @react-native-community/push-notification-ios that needs updating.

0reactions
github-actions[bot]commented, Oct 23, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

apns-push-type key required for al… | Apple Developer Forums
The important part is that the apns-push-type header is: "Required when delivering notifications to devices running iOS 13 and later, or watchOS 6...
Read more >
Where to do Header fields configurations for Push Notification ...
Where to do Header fields configurations for Push Notification for iOS 13? · First attribute/parameter to the headers for APNS Payloads: apns- ...
Read more >
iOS 13 and Xcode 11 Changes That Affect Push Notifications
We discovered several technical changes to notifications in iOS 13 and Xcode 11, which have not been well-publicized by Apple.
Read more >
Azure Notification Hubs updates for iOS 13 - Microsoft Learn
Apple now requires that developers identify notifications as an alert or background notifications through the new apns-push-type header in ...
Read more >
Sending Push Notifications to iOS 13 and watchOS 6 Devices
In June, Apple announced that push notifications sent to iOS 13 and watchOS devices would require the new apns-push-type header.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found