ios - iOS10 UNNotificationServiceExtension not called -


im implementing new ios10 extension use rich notifications. im trying test on push notifications not working, receive simple notification , not going through extension.

i did it's specified in official sites , other places:

  • i have app , running push notifications , right provisioning profile
  • i added new target app, notification service extension
  • implemented own code (it doesn't matter because not entering new class)
  • also had set provisioning profile extension, use 1 wildcard, don't see documentation specifying if extension target has enable push notifications capability, in case need specific provisioning one, @ moment use wildcard prov, anyway matches (it must match) profile use in app target, , push notifications capability enabled app target only.
  • i added unnotificationextensioncategory , nsextensionpointidentifier. im sending category part of push payload server.

as said, notification never goes through extension. see how os tries load extension throws error no relevant description identify problem:

dec 31 21:00:00 iphone springboard(libextension.dylib)[51] <notice>: calling plugin beginusing:    dec 31 21:00:57 iphone pkd[86] <notice>: assigning plug-in com.test.app.notificationwithattachmentextension(1.0) plugin sandbox    dec 31 21:03:57 iphone pkd[86] <notice>: enabling pid=51 plug-in com.test.app.notificationwithattachmentextension(1.0) 38bb5ff1-2597-42e0-b950-169dbfa80573 /private/var/containers/bundle/application/a8c47706-c0ec-4fb1-aba7-0118372f6900/testapp.app/plugins/notificationwithattachmentextension.appex    dec 31 21:00:53 iphone springboard(pluginkit)[51] <notice>: plugin com.test.app.notificationwithattachmentextension interrupted    dec 31 21:03:56 iphone springboard(pluginkit)[51] <notice>: hub connection error error domain=nscocoaerrordomain code=4097 "connection service named com.test.app.notificationwithattachmentextension" userinfo={nsdebugdescription=connection service named com.test.app.notificationwithattachmentextension}    jun 29 13:33:36 iphone springboard(libextension.dylib)[51] <notice>: pluginkit error in beginusing:    jun 17 23:33:04 iphone springboard(libextension.dylib)[51] <notice>: killing invalid plugin    dec 31 21:00:00 iphone springboard(usernotificationsserver)[51] <error>: extension error whilst trying modify push notification f502-9b36: error domain=nscocoaerrordomain code=4097 "connection service named com.test.app.notificationwithattachmentextension" userinfo={nsdebugdescription=connection service named com.test.app.notificationwithattachmentextension}    dec 31 21:00:00 iphone springboard(usernotificationsserver)[51] <notice>: [com.test.app] saving notification f502-9b36    dec 31 21:00:00 iphone springboard(libextension.dylib)[51] <notice>: completed calling plugin beginusing: pid: 0   

relevant extension .plist:

  <dict>     <key>nsextensionattributes</key>     <dict>       <key>unnotificationextensioncategory</key>       <string>attachmentcategory</string>       <key>unnotificationextensioninitialcontentsizeratio</key>       <real>1</real>     </dict>         <key>nsextensionpointidentifier</key>         <string>com.apple.usernotifications.service</string>         <key>nsextensionprincipalclass</key>         <string>$(product_module_name).notificationservice</string>   </dict> 

what's wrong or missing?

thanks in advance

what might trick check deployment target extension. mine set @ 10.2 while device testing on (still) using 10.1

after altering deployment target 10.0 unnotificationserviceextension instance called perfectly


Comments

  1. This is such a great resource that you are providing and you give it away for free. I enjoy seeing websites that understand the value of providing a prime resource for free. I truly loved reading your post. Thanks! Android mobile App development in Singapore

    ReplyDelete

Post a Comment

Popular posts from this blog

elasticsearch python client - work with many nodes - how to work with sniffer -

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -