Notifications

RSS for tag

Learn about the technical aspects of notification delivery on device, including notification types, priorities, and notification center management.

Notifications Documentation

Post

Replies

Boosts

Views

Activity

Convert json to p8 for APN auth key
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?
1
0
766
Nov ’22
Live Activity Dark mode issue with `.activityBackgroundTint(_:)`
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? 🙏
9
5
2.8k
Nov ’22
PushToTalk - On App termination
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
3
0
1.2k
Jan ’23
Location Push Service Extension. CLLocationPushServiceErrorDomain Code: 1
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
2
0
864
Apr ’23
PWA PUSH NOTIFICATION ISSUES IOS 16.4+
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!!
17
4
5.9k
Apr ’23
Silent Background Push Notification not working in Release build.
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?
2
0
1.3k
May ’23
iOS PWA webpush and firebase fcmOptions
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?
4
1
1.2k
Jun ’23
Live Activity Push updates throttling with frequent updates
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.
2
0
952
Jun ’23
PWA push notifications on iOS
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
3
1
5.9k
Jun ’23
MY COMPUTER DOESN'T OPEN ANYMORE RESOLUME ARENA
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
0
1
867
Jun ’23
APNs returning 410 unregistered token
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。
0
0
462
Jul ’23
iOS CallKit, PushKit: Strange behaviour. Sometimes answering UI doesn't pop up
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?
1
0
608
Jul ’23
APNS notifications are not received in device, but server gets success (200) when send to APNS
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.
0
0
639
Jul ’23