The Push Notifications Console now includes metrics for notifications sent in production through the Apple Push Notification service (APNs). With the console’s intuitive interface, you’ll get an aggregated view of delivery statuses and insights into various statistics for notifications, including a detailed breakdown based on push type and priority.
Introduced at WWDC23, the Push Notifications Console makes it easy to send test notifications to Apple devices through APNs.
Learn more.
APNS
RSS for tagSend push notifications to Mac, iOS, iPadOS, tvOS devices through your app using the Apple Push Notifications service (APNs).
Posts under APNS tag
200 Posts
Sort by:
Post
Replies
Boosts
Views
Activity
пригласительный код
when i try to open Screen Time it getting crash and it goes to direct home screen.
my complaint id : FB14044023
Hi
We are using silent push notifications in our app, these trigger our app to run code that syncs data with our server. This includes time sensitive data which the user will want to know about (which we send alerts generated on the device for). We know we are probably not using the notifications system as intended, we plan to rectify this soon using alert push notifications. To begin, we were willing to run the risk of sometimes having our code not be able to run in background, in exchange for less code complexity.
However we did not expect it to be this unreliable. The app is functionally never allowed to promptly run our sync code. We believe the likelihood of promptly being able to run code has also declined significantly in the last few months. It used to perform better.
There are of course many reasons that the app may be denied being able to run, battery, wifi / data, cpu. But when any of these are the reason these provide transparent rationale. The most common rationale we see is Rationale: [{[pushDisallowed]: Required:0.00, Observed:1.00},
TLDR
"pushDisallowed" is a very opaque rationale, we were hoping to have some insight as what makes up the "pushDisallowed" reasoning.
Presumably there are many factors that go into this, a rough list would be very helpful. We aren't necessarily seeking an answer for why our app is being denied, but why apps in general are denied with this rationale. We cannot find anything in the documentation outlining this.
Full example console message
default 16:16:12.710320+1200 dasd com.apple.pushLaunch.nz.co.appName.ios:7808B2:[
{name: ApplicationPolicy, policyWeight: 50.000, response: {Decision: Absolutely Must Not Proceed, Score: 0.00, Rationale: [{[pushDisallowed]: Required:0.00, Observed:1.00},]}}
Until iOS 17.2, the didreceiveremotenotification function was executed for remote notifications without an alert key in APNs, but this is not the case starting from version 17.3.
I tested it with the same app, different versions.
Good day. My app crashed as i launched to testflight. when it is launched on a real devices it crashes
here is my crash report.
Incident Identifier: 6B2FE0C7-91F8-46D3-90B5-EB96A6809C5C
Hardware Model: iPhone12,5
Process: Runner [39554]
Path: /private/var/containers/Bundle/Application/D413442F-1978-4F6F-909C-A09EAE720D44/Runner.app/Runner
Identifier: com.gtirides.appRide
Version: 1.0.0 (1)
AppStoreTools: 15F31e
AppVariant: 1:iPhone12,5:16
Beta: YES
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.gtirides.appRide [4745]
Date/Time: 2024-06-20 13:07:17.1843 +0100
Launch Time: 2024-06-20 13:07:16.9994 +0100
OS Version: iPhone OS 16.5.1 (20F770750d)
Release Type: User
Baseband Version: 4.02.01
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Codes: 0x0000000000000001, 0x0000000000000000
VM Region Info: 0 is not in any region. Bytes before following region: 4301684736
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
__TEXT 100668000-100670000 [ 32K] r-x/r-x SM=COW ...er.app/Runner
Termination Reason: SIGNAL 11 Segmentation fault: 11
Terminating Process: exc handler [39554]
Triggered by Thread: 0
Thread 0 Crashed:
0 Intercom 0x0000000100e94610 +[ICMIdentityStore hexTokenFromDeviceToken:] + 32
1 Intercom 0x0000000100e946bc -[ICMIdentityStore setDeviceTokenData:environment:failure:] + 80
2 Intercom 0x0000000100ebb320 +[ICMHTTPBridge registerDeviceToken:failure:] + 116
3 Intercom 0x0000000100ea7bdc +[ICMBridge registerDeviceToken:failure:] + 112
Hello everyone,
I'm getting desperate... I have built a small chat app and just can't get the other person to receive a push notification outside the app.
Does anyone have a code snippet or an idea how I can solve this? I'm getting desperate!
I have already tried a lot, the best would be a local solution where the message is triggered when the user receives a new message.
I would be happy to receive code snippets or tips. Sending via OneSignal works, but as I said, I just can't get the user to user messages to work!
Potential Apple Pay Notification Delay in iOS 18 Developer Beta
Users are reporting a delay in receiving purchase notifications in Apple Wallet after using Apple Pay. Transactions are confirmed within the Wallet app, but the notification arrives hours later.
As this issue is occurring on the iOS 18 developer beta, it's likely a software bug related to Apple Pay integration with Wallet.
I have reported this to Feedback.
Is anyone else having the same problem?
Hi guys,
Any ideia how can i make push notifications works on a WHM (cPanel) for mail accounts?
On Apple Mail, push only works every 15 minutes, and if sent an email takes this time to shows up on iphone/iPad
Thanks
Hello there,
I'm playing around with the new ControlWidget controls and I'd like to start a Live Activity from on of them like they did in the WWDC Session.
Is this only possible using push notifications or is there another way around to do so locally?
Thank you.
For a few years now, I have submitted requests for com.apple.developer.usernotifications.filtering entitlement, but never got an approval/denial response from apple. even after contacting them via email, still didn't get a response about the request status.
our app is an emergency alerts app, this entitlement is crucial for our app reliability.
Last request i have sent has Case-ID: 7377207
iOS 18 announced improvements to the Wallet Passes. Does anyone have a link to the updated documentation? The old documentation does not have the changes as of the time of this post. There is a video, however, there are no specifications for the the new image formats (e.g., artwork.png).
Hi,
We are trying to implement a system that delivers real time data updates to our apps through the Firebase Cloud Messaging system using the REST API with the relevant payload. We set content-available to 1 so that the payload delivery is silent.
We use the didReceiveRemoteNotification delegate function to receive the push notification. It works seamlessly when the app is built through Xcode but when we tried it on an .ipa, the delegate function is not called.
We have tried setting different parameters in apps-priority and apps-push-type but without much success. Apple documentation points out that there are some restrictions when it comes to receiving silent push notifications in this way. But in our case, it looks like Xcode builds work perfectly while ipa builds are very spotty at best.
Is this not the right method to receive real time data updates? It was our impression that this is how chat apps for example are setup to receive real time text updates.
If this method cannot be used, does anyone have any other suggestion as to how to go about achieving the same behaviour within our apps?
Thank you!
Fardin
Hi Everyone,
I am setting apns expiration in the push payload sending to apple server. push expires in 30 seconds as per the configuration using development certificates.
However the same logic does not work when I use adhoc profile but works in App store .
Any specific reason it does not work using adhoc profile?
We recently noticed that our app is receiving duplicate notifications, and this is impacting multiple users, and we verified from our server that we are sending the notifications only once
This is a sample payload of the notifications we are sending
{
"aps": {
"alert": {
"title": "title",
"body": "body"
},
"category": "test",
"mutable-content": 1
},
"navigateTo": "test",
"imageUrl": "test"
}
Also a user with IOS 17.5.1 reported this issue also
I am trying to set up the push notification for iOS for React Native version 0.71.7. I have done all the setup for this push notification which is mentioned in your git repository. Push notification was working fine for my old version of project 0.67.2. But in this new version, it is not working. Please help me out to solve this problem.
Mechine Configaration :- Mac Os Version:- 14.4.1 Xcode Version:- 15.3 Node Version:- v20.12.0 RN Version:- 0.71.7
Git issue link :- https://github.com/react-native-push-notification/ios/issues/443
Please help me to solve this problem i have been suffering from this problem for a long time after upgrading the React native project version.
Here is the code:
let pushRegistry = PKPushRegistry(queue: .main)
func applicationDidFinishLaunching() {
pushRegistry.delegate = self
pushRegistry.desiredPushTypes = [.complication]
}
func pushRegistry(_ registry: PKPushRegistry, didUpdate pushCredentials: PKPushCredentials, for type: PKPushType) {
let token = pushCredentials.token.reduce("") { $0 + String(format: "%02x", $1) }
print(token)
}
The watch extension has push notifications capability, and the delegate is never called with the pushCredentials.
Hey Team,
We're experiencing an issue where push notifications are failing to deliver to certain devices in the production environment. However, they are working fine in the development build on specific devices. Interestingly, the notifications are working fine for a few devices in the same production environment.
In the affected devices we have attempted the following things to resolve the issue
Verify the device token (& send the notification through apple push notification console)
reinstall the application
reboot the device
Below are the device details
Model - Macbook Pro 15-inch, 2018
processor - 2.9 GHz 6-Core Intel Core i9
OS Version - macOS Sonoma 14.2.1
I have attached the APSD process console log for the affected device. In which we are getting following error.
apsd Peer connection [pid=472] lacks APSConnectionInitiateEntitlement
APSD_ConsoleLog.txt
Thank you all in advance for any information regarding this issue and we will provide any additional information if needed.
Delivery issues with push notifications can usually be determined by examining the responses from APNs.
APNs will return useful information both in the HTTP/2 header response, and as a JSON dictionary for unsuccessful requests. You can find the list of responses, and further troubleshooting steps in the article Handling Notification Responses from APNs:
If the above document does not help clarify the issue, or issues with receiving notifications persist despite receiving an error status neither in the HTTP/2 headers nor in the response JSON dictionary, we may be able to assist you with diagnosing the issue.
If you are using a third-party push notification provider service, we recommend to contact them first to make sure the issue is not between your app and their service, and to obtain information on any errors they might be receiving from Apple servers.
To help diagnose the issue, we will need some information about the push requests. Please include the following information in your post, for a failed or delayed notification that has been attempted within the last 48 hours:
The following are required to start a diagnosis:
Exact time and date (including time zone) of the push request sent
Exact time and date (including time zone) of the notification received by the device (if received at all)
Your app’s Bundle ID
The token the push was sent to
The returned (error) status and message from APNs
Full contents of the HTTP/2 headers
Full contents of the payload
The following are helpful for timely and accurate diagnosis of the issue:
If using your own server to send: the public IPv4 address of the push provider server used to send the push
If using a third-party service to send: the name of the third-party push provider service used
The push topic (apns-topic header value)
The push type (alert, background, VoIP, other)
The apns-id (either set in your request, or received from the HTTP/2 header response)
Any logging you have from the server side that shows the interaction with it and APNs
If you are using a third-party push provider service, and do not have the above necessary info, or only have the info you are providing to the service, please first contact the service provider for a resolution or to give you the above specific information.
When posting about an issue you are having with sending/receiving push notifications, include the above required information and as much of the secondary helpful information you can collect with your post in an organized manner for us to be able to help with diagnosing the issues.
Notifying the Live Activity When Countdown is Complete:
Once the countdown timer reaches zero, how do I notify the live activity? What is the best approach to ensure the live activity updates accurately and promptly?
Handling App Suspension in the Background:
When my app is in the background, it gets suspended. Should I set up a job queue on the backend to send an update push notification when the timer ends? Is there a more efficient way to handle this?
Ensuring Timer Accuracy:
Since this feature deals with time, I am concerned about the accuracy of the timer. How can I ensure the countdown timer remains accurate even when the app is not in the foreground?
Any answers, insights, or guidance on these issues would be greatly appreciated. Thank you in advance for your help!
I have a native SwiftUI Mac app which is based off my iOS app and includes Core Data with iCloud sync. As per my understanding, when a user makes a change on one of the devices a remote notification is sent to the others. I have a widget which displays information from Core Data and the remote notification makes the widget update its information on the next timeline refresh without the user having to open the app manually.
My question is, if an app is closed on macOS so it's not even running in the Dock, do remote notifications work? This page says "the delegate receives this message when the application is running and a remote notification arrives for it". Does that mean the app won't receive remote CloudKit notifications when closed on macOS?