Skip to content

incoming pushing dont trigger didReceiveNotificationRequest in a Notification Extension #79

@ARFAOUI

Description

@ARFAOUI

trying to build my own UI when receiving a Push on iOS 10, I'm using Pusher ( https://github.com/noodlewerk/NWPusher ) to build and send payloads to APNS in my Dev environment. everything is working fine and didReceiveNotificationRequest is being called in the notification extension.

my payload in Pusher is the following :
{"aps":{

"alert":{
"title": "This is an iOS 10 Push!",
"subtitle": "Notification subtitle is displayed when you 3D touch",
"body": "this is the push body displayed when you 3D touch the notification popup"
},
"mutable-content":1,
"content-available" : 1 },
"customInfo" : {
"title" : "This is our push title in the advanced screen",
"imageLink" : "http://cms.geteve.de/assets/looksimages/150922-FischgraetenFake-Cynthia-Nathalie-01-Step-1.jpg",
"intro" : "Haare gut durchkämen. Dann einen seitlichen Zopf binden und am oberen Ende eine Lücke bilden",
"contentSlug" : "perfekte-rote-lippen",
"video" : "http://www.sample-videos.com/video/mp4/720/big_buck_bunny_720p_1mb.mp4"
}
}

Switched to OneSignal, I receive normal pushes but when I set the mutable-content to true, the didReceiveRemoteNotification in my appdelegate is called but the Notification extension don't!

If you can investigate this and will be great if you add a new target to the example project with support to Notification service extension + Notification content.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions