Getting an error from push notification

前端 未结 15 2102
失恋的感觉
失恋的感觉 2020-12-01 02:39

In my app, I need push notifications. I am implementing all the instructions from the push notifications docs. But I got an error from Push Notification:

Fai         


        
相关标签:
15条回答
  • 2020-12-01 03:13

    enter image description here

    Make the Profile right.Maybe you do not set the profile.

    0 讨论(0)
  • 2020-12-01 03:14

    I had same problem,

    I solved it making sure in Built Settings, Code Signing Identity for debug is set to proper Provisioning Profile

    in which you enabled push notifications.

    0 讨论(0)
  • 2020-12-01 03:14

    Just make sure that you are using the specific provision certificate

    go to: https://developer.apple.com/ios/manage/provisioningprofiles/index.action check the status of your provision certificate, in worst cases just create new one, download it and assigne it to your project again.

    Make sure which type of provision you are using, "development" or "distribution"

    0 讨论(0)
  • 2020-12-01 03:16

    For me -> go to project settings -> app target -> Capabilities

    enable Push Notifications!

    0 讨论(0)
  • 2020-12-01 03:17

    If you're managing more than one apps pushes on one server then consider the following facts.

    You need to process a separate private key as a p12 file to prepare pem file and this private key is generated in keychain app when you create a .certSigningRequest file. So, this CSR can be reused for same app upon expiration but a separate is needed for any other app.

    0 讨论(0)
  • 2020-12-01 03:20

    I got same error in XCode 4.6.1, It worked for me then I delete the previous APNS profiles from the Mac and redownload the APNS provisioing profile from member center. In Build Settings at target mode, Code Signing Identity should only in Debug Mode as iphone Developer for Release put as nil or delete the developer or distribution.

    0 讨论(0)
提交回复
热议问题