Post

Replies

Boosts

Views

Activity

Local Push Connectivity - Send a Silent Notification
I am currently investigating how to use Local Push Connectivity to generate push notifications on the users device similar to the Simple Push Example sample code found here My question is: Is it possible to generate a Silent/Background notification using UNUserNotificationCenter in my NEAppPushProvider subclass? Failing that, it is possible to - somehow - wake my app (not the extension but the main app) in the background and have it respond when data is sent from the server? There is: appPushManager(_:didReceiveIncomingCallWithUserInfo:)in the NEAppPushDelegate But will that wake the app up if it is not running? Thank you for your time reading this :)
1
0
996
Nov ’21
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.
7
0
2.1k
Oct ’21