Post not yet marked as solved
Click to stop watching this thread.
You have stopped watching this post. Click to start watching again.
contentPostList.repliesup-voted.tooltip
Replied In
Silent notifications
I too have the same problem but not with the push hero application.
My function:
class AppDelegate: NSObject, UIApplicationDelegate {
func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?,
connectionOptions: UIScene.ConnectionOptions) -> Bool {
Is not called when a notification with "apns-push-type": "background" is set. I receive 200 status from the sandbox APNS servers but no notification is received by the App whilst locally connected to my Mac with a cable and Xcode running. Breakpoints set but not activated.
If I change the apns-push-type to "alert" it works fine, however I don't want to have notification banners popping up when my app is in the background or closed.
My JSON payload has "content-available": 1 set as per documentation, and no other fields set within the APS field