UserNotifications

RSS for tag

Push user-facing notifications to the user's device from a server or generate them locally from your app using UserNotifications.

UserNotifications Documentation

Posts under UserNotifications tag

242 results found
Sort by:
Post not yet marked as solved
3.2k Views

Big Sur Battery Low Notification - Missing

Hi There, I'm experiencing some frustration with Bug Sur and I wondered if this is something anyone else has experienced.. Essentially - I've noticed that when the battery goes below 10pc, it doesn't notify you. So, you can be working away in full screen (which I do, frequently) or in the middle of work calls and the Mac just "dies". In Catalina a notification came up saying that your battery was low and to plug it in - but not Big Sur (yet) Please, put this back in - I don't want to have to keep checking my status bar all the time
Asked
by JIMMWX.
Last updated
.
Post not yet marked as solved
42 Views

iOS 15 App Icon missing for Rich Notifications

For some reason on iOS 15 the app icon banner is missing for the expanded view on rich notifications. Toggling UNNotificationExtensionDefaultContentHidden back to false on the Content Extensions Info.plist causes the app icon to come back, but this isn't what we want since it also shows the original title & message. I've noticed that the Facebook notifications also have the same issues at the moment. I couldn't any documentation on why this changed. Attached is an example of a sample project where the App Icon is missing.
Asked Last updated
.
Post not yet marked as solved
34 Views

NSOSStatusErrorDomain Code=-54

2021-10-15 12:26:06.427879+0800 CodeNotificationExtension[17524:630750] [default] LaunchServices: store (null) or url (null) was nil: Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=264, _LSFunction=-[_LSDReadClient getServerStoreWithCompletionHandler:]} 2021-10-15 12:26:06.428337+0800 CodeNotificationExtension[17524:630750] [default] Attempt to map database failed: permission was denied. This attempt will not be retried. 2021-10-15 12:26:06.428386+0800 CodeNotificationExtension[17524:630750] [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=264, _LSFunction=-[_LSDReadClient getServerStoreWithCompletionHandler:]} 2021-10-15 12:26:06.428445+0800 CodeNotificationExtension[17524:630750] [Intents] +[INAppInfo appInfoWithAppProxy:] Unable to create app info with application record: Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=264, _LSFunction=-[_LSDReadClient getServerStoreWithCompletionHandler:]}
Asked Last updated
.
Post not yet marked as solved
32 Views

Regarding IDFV and Device tokens

・Phenomenon Obtained device tokens for the same APNs from multiple IDFVs ・Question The device token is supposed to be a unique ID, Is there a possibility that the above-mentioned events will occur due to the specifications? What are the possible cases when it occurs? Example) Model change, OS update, application reinstallation, etc. Also, have you reported similar issues? Any advice on how to fix this?
Asked Last updated
.
Post marked as solved
90 Views

Local Push Connectivity - Configuring the SimplePush sample - missing entitlements

We are currently trying to evaluate Local Push Notifications by getting the Receiving Voice and Text Communications on a Local Network project up and running, so far without luck. The Problem We cannot get the "app-push-provider" entitlement to appear in our provisioning profile. What we've tried We applied for the Network Extension App Push Entitlement and got a reply 3 days ago saying that we had been approved but that the changes might not be visible in our account for a few days. Since then we have: downloaded the sample project selected "Automatically manage signing" and selected our team on the various projects in the Simple Push workspace created a new app group and used that Doing so results in Xcode spinning with "Creating provisioning profile..." and "Waiting to repair..." before keeling over with this warning: Provisioning profile "iOS Team Provisioning Profile: xxxx" doesn't match the entitlements file's value for the com.apple.developer.networking.networkextension entitlement. OK fine, next we: created a manual App ID and enabled the "App Groups" and the "Network Extensions" capabilities created a development Provisioning Profile using the above App ID downloaded and used that Provisioning Profile instead but with the same result Provisioning profile "yyyy" doesn't match the entitlements file's value for the com.apple.developer.networking.networkextension entitlement. If we look at the generated provisioning profile we can see that the values under com.apple.developer.networking.networkextension does not contain the "app-push-provider" value so...we understand why this doesn't work at least :) Re-re-reading the README of the sample project we notice this: After you register the IDs, create two provisioning profiles (one for each identifier) that include the App Push Provider entitlement. But we cannot find any steps or checkboxes that allows us to do anything out of the ordinary when generating a provisioning profile. Questions Well first and foremost, are we doing anything wrong, or has the changes simply just not propagated through yet? Is there any visible way for us to see that we have access to the "App Push" entitlement? Concerns (or: questions that keeps you awake at night when this isn't just working as expected :)) Have we given you wrong information when asking for the permission? In the form we filled out an Apple ID based on an app created in App Store Connect. That app matches a bundleID we've created and that we use when creating an App ID and provisioning profile. Do we need to use something else than a developer Provisioning Profile Currently we've used a user with Admin rights to generate these profiles. As the request for this entitlement needed to be created by the Account Owner...does that mean that it has to be the Account Owner who generates the App ID and profiles? Thank you for reading this. Any help is highly appreciated.
Asked Last updated
.
Post not yet marked as solved
42 Views

Delay from APNS to send device token after registration with APNS

Why is there a delay in sending the device token to didRegisterForRemoteNotificationsWithDeviceToken once after the device is registered for APNS? Is there any reason other than network connectivity for the delay from APNS to send the device token after device is registered with the Apple APNS? Is this delay limited to certain OS Versions?
Asked Last updated
.
Post not yet marked as solved
41 Views

deleted App from App store/Notify Users

how can we notify the users in case we deleted the app from App store? as still users who had the application can access it and we don't know how to notify them to remove it
Asked Last updated
.
Post not yet marked as solved
33 Views

Can I running main process from NotificationServiceExtension

Hi all, I develop an application using remote notification. The notification is encrypted over server so only client can decrypt. Firstly I try to using background task, then I decrypt can make a local notification to user. But this background task sometime missing. And then I try to using NotificationServiceExtension and I check it always receive the remote notification but it not running the main app, and all my business logic is in the main app. So can I running main process from NotificationServiceExtension? Here is some link I try to do: https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/pushing_background_updates_to_your_app https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/generating_a_remote_notification https://developer.apple.com/documentation/usernotifications/modifying_content_in_newly_delivered_notifications Thank you.
Asked Last updated
.
Post not yet marked as solved
251 Views

Beacon region triggered notifications no longer trigger on iOS 15

UNNotificationRequests with a UNLocationNotificationTrigger created using a CLBeaconRegion can be scheduled and are returned in the pending list when the getPendingNotificationRequests method is called on UNUserNotificationCenter. However, they never trigger based on beacon region entry or exit. This is a change in behavior from iOS 14. I can't find any reference to this change in the WWDC21 presentations. Can anyone confirm if this change is intentional and documented anywhere or likely a bug.
Asked Last updated
.
Post not yet marked as solved
57 Views

Any concrete info on when Apple apply server side APNS throttling?

We have an app which gets sent APNSs by the server and use a Notification Service Extension to intercept them. In my observations I've never seen throttling applied on the device to these pushes (unlike app directed push where its easy to observe happening if you let the batter run low for example). The Apple documentation says it may perform server side throttling, but when, how often, under what circumstances? If the app has 30 million users and the server sends them 10m or 100 pushes per day will it get throttled? Does anybody have any have any documented or observed info on this.
Asked
by mungbeans.
Last updated
.
Post not yet marked as solved
152 Views

Create reminder with Interval, repeat, and exact time

Hello everyone, I created reminder with two pickers. One of them is for choose number of days (how often to receive notifications (every 2 days, every 3 days etc.)) and another one for choose the time. Problem is that is two different triggers UNCalendarNotificationTrigger and UNTimeIntervalNotificationTrigger(for Time Interval). Now user can only choose Time Interval. Maybe someone knows how to create both? Thank you:)
Asked
by Nick.lvv.
Last updated
.
Post not yet marked as solved
51 Views

Expiring push notifications automatically?

Hi, I think the answer is no, and I've been researching to find out otherwise to no avail, but is there a way to expire banner notifications after a certain amount of time? An example of this may be the score of the first half of a game, or an overnight weather alert. First half score is irrelevant to me a couple of hours later when the game is over. So is there a way to have a banner which shows up as a notification expire and go away after x number of minutes without user intervention and ideally regardless of whether or not the app is currently running? If so where do I find the docs for it?
Asked Last updated
.
Post not yet marked as solved
50 Views

time sensitive notification on iPad

Hi, are time sensitive notifications also available on iPad? Checking the timeSensitiveSetting parameter on UNNotificationSettings response I found .enabled on my iPhone and .notSupported on my iPad. Thanks in advance
Asked
by Francesco.
Last updated
.
Post not yet marked as solved
121 Views

Is APNs device token sent to iOS?

Hi, When a push notification is received from APNs to iOS within the iPhone, how does iOS know which app to provide the notification payload to? Is device token also handed over by the APNs to the iOS, and used by iOS to know the right app to which the notification payload belongs? Apple developer information reg. Push Notifications only indicate that that Device token is included by the app server in its request to APNs, and is used by the APNs to identify the correct device to forward the notification to. It does not mention if the APNs also forwards the device token to iOS, and is used by iOS to identify the target app. https://developer.apple.com/documentation/usernotifications/registering_your_app_with_apns Thanks in advance! /Isaac
Asked Last updated
.
Post not yet marked as solved
255 Views

Local Push Connectivity For In-House/Enterprise Applications.

We are currently working on Creating a POC Using the Receiving Voice and Text Communications on a Local Network sample, According to this information "Apps that use Local Push Connectivity require the App Push Provider entitlement." - we need to create an APP on AppleStore Connect, but we are working on an In-House/Enterprise Entity, which restricts the access to AppStore Connect. Can you help us with, How to get the "app-push-provider Entitlement( https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_developer_networking_networkextension)" for us to use on the Apps at Delta Enterprise. According to the discussion on the above link To add this entitlement to an iOS app or a Mac App Store app, enable the Network Extensions capability in Xcode. To add this entitlement to a macOS app distributed outside of the Mac App Store, perform the following steps: we need the Entitlement to make this sample project work. According to the above point, we enabled the Network extension capabilities on the App side, but it was missing App-Push- Provider Entitlement. your help will be much appreciated. Link:- https://developer.apple.com/documentation/networkextension/local_push_connectivity
Asked Last updated
.