Tried all these steps
Force restart
DIsabled focus mode
Notifications are enabled in both device and in app settings
Disabled summary notifications.
Tried sending notification from pusher tool, that also is not showing up in the center.
What could be the reason and a possible solution?
Notifications
RSS for tagLearn about the technical aspects of notification delivery on device, including notification types, priorities, and notification center management.
Post
Replies
Boosts
Views
Activity
We are using fcm to send push notifications. Recently we noticed some of our ios devices were not receiving push notifications, failing. By using the Push notification console we can see we are failing from APNS, with a 400 - Invalid Push Notification. Once this occurs we dont get push notifications on that device. We have tried re-logging in and re-installing the app. This does not work initially. However eventually they start working again after re-installing, usually after at least a day.
{
"code": 400,
"message": "bad-request",
"reason": "Invalid push token",
"requestUuid": "ee04b0f1-c6aa-4b5e-87c0-7df754801d6f"
}
Any ideas why the token is deemed invalid? Is there any way to get more details?
I have a few devices that don‘t connect MDM server.
It work well after enroll the MDM server, but it won't work anymore after a few days.
MDM server send apns request, apns server always return success, and i try power off / on, restore network, restore all settings, but still don't work.
What could cause this situation,and is there a solution?
Hi,
While testing the new Contact Provider Extension in the iOS 18 betas I noticed that the Notification Service Extension is unable to connect to the CPE in order to trigger a refresh. The ContactProviderManager init throws an "Extension Not Found" error.
The CPE documentation mentions a main use case of using notifications to trigger CPE updates:
"An example of using this call is to handle a push notification to your app when the provided contacts from your server update." source
Is the main app the only way to trigger a CPE update? The documentation does not specify this limitation.
I have tested this on a physical iPhone 15 running iOS 18 beta 4.
Thanks,
Wes
Hello, previously i have tested the purchase via test flight and the server notification was sent to my sandbox url.
Now when I made the purchase from live app, my server did not receive any notification even though the production url was the same as the sandbox url.
The purchase was for a consumable product.
Please help, thanks.
Hi, I'm required to create an app with a WkWebView, this web view should point to a webApp wich should send web notifications.
this web app, downloaded on the "home" of my device, is working. But from what I can see on the web, it is not possible for me having a native swift app, with a WkWebView , receiving notifications from the web app.
is it right? or there is a way to achieve this?
I understand that WkWebView view are not working with Service Workers which it seems to me they are required.
could someone help me? thanks in advance
I am attempting to send a push notification via APNS from a supabase edge function (deno/typescript). I receive a 200 OK response from APNS, and using the "apns-unique-id" I am able to look up the notification in the dashboard which shows the notification was successfully sent to the device. However the app/device does not receive the push.
Using the dashboard, I can successfully send a test push to the device,
and I also have FCM already implemented and working, so I assume the iOS/client-side setup is not the problem. I also verified that my generated JWT and device token are valid via the dashboard, plus I'm getting 200 back with the request, so I also assume that auth is not an issue either. Yet even with a simple alert payload such as below, nothing comes through.
What else could be causing this issue? Perhaps I'm missing a step? The details of the request I'm making are below:
url = "https://api.sandbox.push.apple.com:443/3/device/{deviceToken}"
headers = {
"authorization": "Bearer {jwt}",
"apns-push-type": "alert",
"apns-topic": bundleId,
"apns-priority": 10
}
body = {
"aps": {
"alert": {
"title": "Test Notification",
"body": "This is a test notification.",
"sound": "default"
}
}
}
Hello All, I am getting following popup for our application,
I have implemented PTT Push To Talk framework by following https://developer.apple.com/documentation/pushtotalk/creating-a-push-to-talk-app
We are using following VoIP entitlements, Our app support from iOS 12
i) com.apple.developer.pushkit.unrestricted-voip
ii) com.apple.developer.pushkit.unrestricted-voip.ptt
We have updated app with new Push To Talk framework and it's working fine. Our app's minimum deployment target is iOS-12.0 , So app will also work without using PTT framework for older iOS.
Question,
Why popup display even after new Push To Talk framework implementation?
what should I do to remove this popup from showing? Should I do any other setting to complete this framework?
Thanks.
According to the documentation (https://developer.apple.com/documentation/usernotificationsui/unnotificationcontentextension), a Notification Content Extension should consist of a UIViewController that adopts the UNNotificationContentExtension protocol.
The only problem is that UNNotificationContentExtension's methods are not @MainActor isolated, but UIViewController is, which produces this error when you try to build your code with Complete concurrency checking turned on:
Main actor-isolated instance method 'didReceive' cannot be used to satisfy nonisolated protocol requirement
If you add nonisolated, you are then left with another problem in that UNNotification is not Sendable.
What is the recommended solution to this problem?
I'm trying to start a live activity that allows a user to see and control a recording from their lock screen. I have an AppIntent that uses a class to start recording the user. The intent is used in a home screen widget. Upon pressing the button in the widget, the intent is called, which then calls the startRecording function within its perform.
This function then tries to start the live activity, but it is currently failing with a "Failed to start live activity: The operation couldn’t be completed. Target does not include NSSupportsLiveActivities plist key" error.
The relevant code block is this:
func startRecording() {
print("[RecordingManager] start recording called")
isRecording = true
let activityAttributes = RecordingControlWidgetAttributes(name: "RecordingManagerActivity")
let initialContentState = RecordingControlWidgetAttributes.ContentState(isRecording: true, startTime: Date())
let initialContent = ActivityContent(state: initialContentState, staleDate: nil)
if ActivityAuthorizationInfo().areActivitiesEnabled {
do {
liveActivity = try Activity<RecordingControlWidgetAttributes>.request(
attributes: activityAttributes,
content: initialContent,
pushType: nil
)
} catch {
print("Failed to start live activity: \(error.localizedDescription)")
}
} else {
print("Live activities are not available")
}
// TODO: actually start the recording
}
When this function is run/the button is pressed, the following messages are printed:
"[RecordingManager] start recording called
Failed to start live activity: The operation couldn’t be completed. Target does not include NSSupportsLiveActivities plist key"
However, I have included the NSSupportsLiveActivities key, with value YES, in the target Info in XCode for both the main app target and the WidgetExtension.
The following line exists in both the Release and Debug parts of the project.pbxproj file:
INFOPLIST_KEY_NSSupportsLiveActivities = YES;
I also tried including this key and value directly in the Info.plist file of both targets, but that also didn't work.
This issue is occurring both on device and in simulator. I also checked that both my device and the simulator has LiveActivities turned on in Settings for the app.
What could be going wrong? Are there any other situations where this error may print?
Hello.
I have a few questions about Location Push Service and Screentime Family controls.
Do Location Push Service and Screentime Family controls require permission to be tested with development builds?
Will my application for permission to test be approved?
How long does it take to receive results if I apply for permission?
Is it possible to use the functionality of the Screentime api in LocationPushServiceExtention?
Is it possible to control remotely even if I apply for Screen time API's Family Controls permission as an individual? (ex. Change Screen time settings by push from server)
Information is needed to plan an app that includes both functions.
Thank you
Tried all these steps
Force restart
DIsabled focus mode
Notifications are enabled in both device and in app settings
Disabled summary notifications.
Tried sending notification from pusher tool, that also is not showing up in the center, for the device effected but on another device it is working fine for the same application(same version too)
What could be the reason and a possible solution?
Experiencing 403s (InvalidProviderToken) [https://api.push.apple.com/3/device/] due to invalid or unverifiable provider tokens. We have noticed that after retrying the request inline, the notification is delivered successfully without any changes to the request even with same authorization token.
Someone please guide or suggest why it is happening as the JWT token which is generated is correct because we are caching the jwt token and using the same token to send out the subsequent request which is kind of successfull.
Sending the notification for multiple team Ids under the same application.
Good day!
Recently, we are doing the feasibility study for transferring our App from team A to team B.
Our App uses Apple Push Notifications service (APNs) and we know we need to recreate certificates after the App transferring.
We have a question that can we use the old device tokens which are registered before the transferring to send the notification to users?
For example,
Before the transfer:
User A installs App and upload tokenA_old to our service server.
Our service server stored it into our database.
After the transfer:
User A doesn’t launch App and we only have the tokenA_old which is stored in our server.
After we recreate push notification certificate, can we send notification with tokenA_old to user A?
Or his device token will be renewed after the App is transferred?
Does he need to launch App and get the new registered device token from APNs and upload it to our server again?
override func application(
_ application: UIApplication,
didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data
) {
let deviceTokenString = deviceToken.map { String(format: "%02x", $0) }.joined()
uploadDeviceToken(deviceTokenString)
}
We want to check above question for following tokens:
deviceToken (Push notification)
API: https://developer.apple.com/documentation/uikit/uiapplicationdelegate/1622958-application
pushToStartToken (Live activity)
API: https://developer.apple.com/documentation/activitykit/activity/pushtostarttoken
Does deviceToken will be renewed after the App is transferred?
Does pushToStartToken will be renewed after the App is transferred?
Thank you.
Our Java backend application is responsible for sending millions of push notifications. However, we are encountering an issue where thousands of connection resets occur daily. This irony leads to an inability to keep up with the volume, resulting in a lag that affects real-time performance.
The application is built on Java, utilizing JDK 1.8 and the Apache HttpClient for network communications. Below is the Maven dependency we use:
XML
Additionally, we employ Spring’s RestTemplate to dispatch push notifications. Here is a snippet of the pseudo-code used to call the Apple Push Notification service (APNs):
Java
ResponseEntity postForEntity = restTemplate.postForEntity(apnsURL, entity, responseType);
getResponse(aPNSResponse, postForEntity);
AI-generated code. Review and use carefully. More info on FAQ.
It’s important to note that our calls to APNs are not made directly but are routed through an F5 load balancer, which then communicates with the APNs endpoint.
Could someone guide us in the right direction to resolve these connection reset issues?
No message notifications coming through
We are using Apple Notification V2 and supporting only one subscription service per user (e.g., Netflix with Basic, Premium plans). In Notification V1, we could fetch the latest subscription information using the /verifyReceipt API. However, the documentation for Notification V2 suggests using SignedDataVerifier to decode the data locally.
This raises a concern that the data received via notification might not always be up-to-date. For example, if a user cancels a subscription but the server fails to process the notification for some reason, and later the user upgrades and resumes the subscription, the new notification succeeds. In this scenario, the previously failed cancellation notification will be resent after some time. How should the backend server handle this?
Should we always use APIs like get all subscription statuses to fetch the latest data instead of solely relying on the decoded data from each notification?
Can I use Screentime API in CLLocationPushServiceExtension?
For example, I am curious about whether it is possible to set a managed setting in the Screentime API to limit app usage time or change the time limit.
If the implementation of the above function is impossible or causes rejection by the App Store, is there a way to use the Screentime API in the background through push notification?
Hello!
I am writing to seek your assistance regarding an issue we have encountered with the in-app purchase subscriptions in our application.
Issue Description
In our application, when a user initially subscribes and opts for the free trial, the product identifier is co.cleaner.storage_001. However, upon renewal, the product identifier changes to co.cleaner.storage_003. This change is causing issues because our backend system relies on the product identifier to manage subscriptions.
Assistance Required
We would like to understand the following:
Does Apple change the product identifier when transitioning from a free trial to a renewal? If so, how should we handle this situation?
Is there any configuration or setting that can ensure the same product identifier is used during both the free trial and the renewal period?
Any recommendations or solutions to ensure our subscription management system can correctly handle user renewals.
Attached are the first free trial data and the renewal notification data for your reference.
Thank you very much for your help and support. I look forward to your response.
Best regards,
first free trial data
renewal notification data
ello!
I am writing to seek your assistance regarding an issue we have encountered with the in-app purchase subscriptions in our application.
Issue Description
In our application, when a user initially subscribes and opts for the free trial, the product identifier is co.cleaner.storage_001. However, upon renewal, the product identifier changes to co.cleaner.storage_003. This change is causing issues because our backend system relies on the product identifier to manage subscriptions.
Assistance Required
We would like to understand the following:
Does Apple change the product identifier when transitioning from a free trial to a renewal? If so, how should we handle this situation?
Is there any configuration or setting that can ensure the same product identifier is used during both the free trial and the renewal period?
Any recommendations or solutions to ensure our subscription management system can correctly handle user renewals.
Attached are the first free trial data and the renewal notification data for your reference.
Thank you very much for your help and support. I look forward to your response.
Best regards,