I was trying to generate the apn auth key from apple dev account. I clicked on the download button and then the downloader downloaded the file as dowload.json format. And When opened the FCM. It requires p8 format. After that I generated another key and got it again as download(1).json. Now i cant generate more keys. How can i convert these two keys to p8 format?
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
Hello,
i am implementing Live Activity and facing a problem setting custom color for widget background.
I have a dedicated catalogue of colors for WidgetExtension each having light/dark variant.
The problem is, however, that widget's view changes color variants (any/dark) according to system settings, but not system background & text of widget set via .activityBackgroundTint(_:) and activitySystemActionForegroundColor(_:)
Both widget background and system button texts remain in light variant no matter what system setting was when starting Live Activity.
Later, i was able to kinda force LA background color by checking color scheme in my widget view (yellow and brown for test purposes)
.activityBackgroundTint(colorScheme == .light ? Color.surface. : Color.brown)
this would force Live Activity background to have expected color from start.
BUT
when i later change appearance in system settings Live Activity behaves weirdly, as if it was caching previous color I provided.
I installed 16.2 beta in hope that it was fixed, but noticed this behaviour 👇
system in light mode: LA start, LA background is light
set system to dark: LA background light
set system to light: LA background dark ❗️
set system to dark: do not pull notification center, do not look at LA, instead immediately 👇
set system to light: LA background light
Is there any way around this? 🙏
How to programmatically leave a channel when an app is forced closed? Currently when a user closes the app, the channel remains active and can still talk via the status bar. However i imagine if a user force closes the app, they no longer want to talk.
I tried implementing this via func applicationWillTerminate(_ application: UIApplication) { // leave channel code }
but it doesn't seem to work
Hi,
We have integrated LA in our app.
We have noticed that sometimes LA won't update although APNs is giving 200. To debug this we have enabled LA along side push notifications. Noticed getting push notifications on time but LA is not updating.
Not sure how to debug this? Is there anyone who has scaled LA successfully?
Thanks
I am getting badge count when we have the apns notification on carplay but notification not displayed on the carplay screen. I have set mutable-content:1 also...Is there anything else to do get notification on carplay screen. In Iphone enabled carplay notification . Please help me
Hi,
How can I send push notification for point update and promos to my loyalty wallet users. Currently I get push notification Id when user install loyalty wallet and I use it for sending wallet updates. But when I tried to use this push notification id for custom APN messages it doesn't appear anywhere.
Thank you.
I'm following Apple guidelines to add the Location Push Service Extension to our app.
I followed these steps:
I applied and got approved for Location Push Service Extension.
My app already asks the user for "Always" permissions for location updates
I added the entitlement key com.apple.developer.location.push = TRUE
I added to the project a new Target, and selected Location Push Service Extension from the iOS Application Extension group
I encouter the following issue. When I run the app and call
startMonitoringLocationPushes(completion:)
I receive the following error:
Error Domain=CLLocationPushServiceErrorDomain Code=1 "(null)"
By looking at Apple documentation for CLLocationPushServiceErrorDomain, code 1 stands for:
missingPushExtension
An error code that indicates the app is missing a Location Push Service Extension.
As mentioned beofore I already added the Location Service Extension Target to the project. Any idea of why I receive this error?
Thanks
Hello Everyone!
After push notifications were enabled we got to work on this feature. for our PWA.
The problem that we are having is that they work great for a little bit and then they suddenly stop working. We thought it was our problem but after doing some research I found that many other developers are having this same issue.
Push notifications work perfectly on Android but don't reach ios users.
Is anyone else having the same issue? Can something be done to fix this?
Thanks!!
Hi there,
Our app is installed on tablets provided to customer workers for performing tasks. We're currently implementing Push Notifications using AWS SNS and FCM. The goal is to send data-only (silent) push notifications to trigger a function that creates a record in the app's local DB.
This approach allows us to control how the message is displayed in the foreground and background using Notifee. While this works well on Android in all states (foreground, background, killed), we're facing an issue on iOS, specifically in the release build.
The silent push notifications only reach devices when the app is in the foreground, not in the background or killed states. Normal push notifications work fine, but we require the ability to send silent notifications for better processing control. Upon researching, we discovered that Apple has strict guidelines for these notifications to prioritize user experience, battery usage, spam prevention, and privacy. However, in our case, the tablets are dedicated work devices with only our app installed.
Given this context, is there a reliable solution to send silent push notifications to iOS devices with the app in the background or killed states?
Hi. I developed a PWA app with fcm because iOS supports push api from iOS 16.4ver
My server push message to fcm with this format.
As you can see, we use webpush.fcmOptions.link to open the url page when users touch notification. On web browser and android, this option works but ios pwa don't. iOS just opens the PWA but can't open the url specified in fcmOptions.link.
Is there anyone who knows about this?
Can I fix it?
I have found that the live activity push notification payload was changed from event -> events.
https://developer.apple.com/documentation/activitykit/updating-and-ending-your-live-activity-with-activitykit-push-notifications
Is it a mistake or it has been updated?
We are updating a Live Activity via push notifications quite frequently. As the documentation suggests, we are using NSSupportsLiveActivitiesFrequentUpdates for this case. We are sending all updates with apns-priority: 10.
Is it still possible that iOS throttles push-updates with this setting enabled?
For example we sent updates to APNS in this frequence:
2023-06-09T09:21:22.492224Z
2023-06-09T09:22:03.415876Z
2023-06-09T09:22:05.643268Z
2023-06-09T09:22:08.567353Z
2023-06-09T09:22:11.988442Z
2023-06-09T09:22:17.983494Z
2023-06-09T09:22:28.400757Z
2023-06-09T09:22:44.185622Z
2023-06-09T09:23:06.633058Z
2023-06-09T09:23:23.560052Z
2023-06-09T09:23:31.863625Z
2023-06-09T09:23:37.18351Z
2023-06-09T09:23:44.086319Z
2023-06-09T09:23:49.40655Z
2023-06-09T09:24:08.034848Z
2023-06-09T09:24:18.614194Z
2023-06-09T09:24:20.176428Z
2023-06-09T09:24:25.384654Z
2023-06-09T09:25:03.103147Z
2023-06-09T09:25:15.433726Z
2023-06-09T09:25:21.171693Z
2023-06-09T09:25:23.262028Z
2023-06-09T09:25:28.241116Z
2023-06-09T09:25:30.19816Z
2023-06-09T09:25:32.440543Z
2023-06-09T09:25:42.381815Z
2023-06-09T09:25:50.581656Z
2023-06-09T09:25:55.659846Z
2023-06-09T09:26:15.042667Z
2023-06-09T09:26:26.924626Z
2023-06-09T09:26:28.608762Z
2023-06-09T09:26:32.012874Z
2023-06-09T09:26:39.111211Z
2023-06-09T09:26:40.415326Z
2023-06-09T09:26:51.142985Z
2023-06-09T09:26:54.364073Z
2023-06-09T09:27:04.225692Z
2023-06-09T09:27:30.80347Z
2023-06-09T09:27:33.560981Z
2023-06-09T09:27:42.334313Z
2023-06-09T09:27:43.834646Z
All of those were sent successfully, but at some point the activity stopped updating. The activity continued for several hours after, but was never updated again.
What I checked so far:
From device logs we can see that there was no updated push-token
The sent content-state is correct
From these observations and considering the high-frequent updates, I suspect that there is still some throttling happening here.
Can anyone elaborate on this?
Thanks in advance.
Hi all,
I have a PWA with notification system working well on any other device including MacBook.
But my customers start to complain that they don't receive any notification on their iphone.
I checked with a friend iPhone XR with iOS 16.5.1 installed on it. And it seems that web push notifications are still deactivated in the experimental features.
Is it normal? Did I mis something? Apple said they delivered webpush API on iOS16 but it's deactivated by default.
I can not ask my customers to go there to activate the option is it a solution to override this or do we still need to wait 10 years to get it activated?
Thanks in advance
HELLO!
I just bought a MacBook Pro M2 32g ssd 1t Ram thinking I had the best machine to work with videos and video's programs.
I'm a visual artist, I use Resolume Arena and when I moved on the new computer my program, it starts to crash!
I tried several times to install-uninstall the program and I don't know why is making that.
This is what appears:
Translated Report (Full Report Below)
Process: Arena [935]
Path: /Applications/Resolume Arena 6/Arena.app/Contents/MacOS/Arena
Identifier: com.resolume.arena
Version: 6.1.5 (6.1.5.68469)
Code Type: X86-64 (Translated)
Parent Process: launchd [1]
User ID: 501
Date/Time: 2023-06-30 06:26:25.5102 +0200
OS Version: macOS 13.4 (22F66)
Report Version: 12
Anonymous UUID: BBEB6B45-F295-0C98-2890-2A64E6E53977
Sleep/Wake UUID: AD36FAD9-7084-4522-9FA0-015CEAC0ABA5
Time Awake Since Boot: 230 seconds
Time Since Wake: 12 seconds
System Integrity Protection: enabled
Crashed Thread: 9
Exception Type: EXC_ARITHMETIC (SIGFPE)
Exception Codes: 0x0000000000000001, 0x0000000000000000
Termination Reason: Namespace SIGNAL, Code 8 Floating point exception: 8
Terminating Process: exc handler [935]
Thread 0:: Juce Message Thread Dispatch queue: com.apple.main-thread
0 ??? 0x7ff8909e69a8 ???
1 libsystem_kernel.dylib 0x7ff800da6fbe __semwait_signal + 10
2 libsystem_c.dylib 0x7ff800c99585 nanosleep + 196
3 Arena 0x1051a4369 0x104c11000 + 5845865
4 Arena 0x1051a3c9e 0x104c11000 + 5844126
5 Arena 0x105119e60 0x104c11000 + 5279328
6 Arena 0x105119b85 0x104c11000 + 5278597
7 Arena 0x105111c87 0x104c11000 + 5246087
8 Arena 0x1055e7406 0x104c11000 + 10314758
9 Arena 0x1055e6c5c 0x104c11000 + 10312796
10 Arena 0x1055e6323 0x104c11000 + 10310435
11 Arena 0x105398455 0x104c11000 + 7894101
12 Arena 0x1058d289e 0x104c11000 + 13375646
13 Arena 0x105736756 0x104c11000 + 11687766
14 Arena 0x1051ed004 0x104c11000 + 6144004
15 Arena 0x1052dc7e1 0x104c11000 + 7124961
16 Arena 0x1051ecf14 0x104c11000 + 6143764
17 Arena 0x1051eceaf 0x104c11000 + 6143663
18 dyld 0x2067d841f start + 1903
Thread 1:: com.apple.rosetta.exceptionserver
0 runtime 0x7ff7ffdb0694 0x7ff7ffdac000 + 18068
Thread 2:
0 runtime 0x7ff7ffdce87c 0x7ff7ffdac000 + 141436
Thread 3:
0 runtime 0x7ff7ffdce87c 0x7ff7ffdac000 + 141436
Thread 4:
0 runtime 0x7ff7ffdce87c 0x7ff7ffdac000 + 141436
Thread 5:
0 ??? 0x7ff8909e69a8 ???
1 libsystem_kernel.dylib 0x7ff800da70ee __psynch_cvwait + 10
2 libsystem_pthread.dylib 0x7ff800de3758 _pthread_cond_wait + 1242
3 Arena 0x1050707dc 0x104c11000 + 4585436
4 Arena 0x104fd5afe 0x104c11000 + 3951358
5 Arena 0x105075907 0x104c11000 + 4606215
6 libsystem_pthread.dylib 0x7ff800de31d3 _pthread_start + 125
7 libsystem_pthread.dylib 0x7ff800ddebd3 thread_start + 15
live Activity’s stale date is not getting updated from remote notification. If it’s just from app, it’s working however from remote notification nothing is happening? What could be the possible reason?
We encountered an issue where some users were unable to receive push during the overwrite installation process。
After a while it was normal again。
Checking the code shows that the registerForRemoteNotifications method is requested twice in a short period of time。
Therefore, we want to know what are the possible reasons for 410 unregistered。
Thanks。
I made an app for calls with CallKit and PushKit. It seems everything is done correctly, according to apples manual on CallKit and PushKit. If I start app on two devices, and try to make a call everything is working for the first time, and it can work for the second time and so on. But then, by unknown reason (I don't handle any errors), the phone that receives voip push notification ringing but doesn't show the panel with answer/decline buttons. If that happens, new incoming calls work the same broken way.
To improve that broken situation I must initiate outgoing call with CallKit on broken phone.
I don't post any code, it just the same as in numerous examples.
Do anyone has guess what's wrong?
In my application, I'm using both APNS for push notifications. In my app, both tokens are generated properly and updated on my App's server. When sending an APNS push from my server, the push is successfully reached the APNS server, but can't deliver to the device, even though we are getting success from APNS Server.
we are getting 200 from APNS.
but the same thing If I am trying to use the "Push Hero" 3rd Party app, and I am getting notifications in the app also, with no any issue. but can't get it from my server.
I am using a .p8 file for push notifications in both the server and 3rd party apps.
I wanted to show count down timer in live activity. Since we can't use Timer in extensions, I used Text.init(timerInterval:pauseTime:countsDown:showsHours:) to show timer. But I need to show different text when the timer ends. How to achieve this behaviour?
How do you animate in live activities?
I've seen apps been able to update around 1 fps. For example with a character looping a dance animation.
How is this done?
I don't think you can call Activity.update() every second. Also it wouldn't run in the background all the time anyway?
Here's an example of Apple's own WWDC video with a bar animating
https://imgur.com/a/yywW7a8