iOS 10 FireBase when notification arrived, do not get call NotificationService.h Notification Service Extension

余生长醉 提交于 2019-12-13 00:46:38

问题


I use firebase and get successfully Notifications but when notification arrived, do not get call NotificationService.h Notification Service Extension. I also set

NSExtensionPrincipalClass to NotificationService

NSExtensionPointIdentifier to com.apple.usernotifications.service

My notification is like

{   
"registration_ids": ["devicetoken"],    
"mutable_content": true,    
"data":{        
       "post_details": {
      "pcm_message": "asdf",
      "pcm_img_url": "http://portalvhds34w6bf5z9b21h.blob.core.windows.net/images/1519365008_5a8fab90cf683.jpg",
    }

   },    

"notification" : {
    "title" : "demo push",
    "body" : "this is push body"    } 

}

where is a problem or missing some information I have already set deployment target 10.0 in my whole project.

来源:https://stackoverflow.com/questions/49027023/ios-10-firebase-when-notification-arrived-do-not-get-call-notificationservice-h

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!