Implement PushKit and test in development behavior

后端 未结 3 1039
别跟我提以往
别跟我提以往 2020-11-28 04:09

i\'d like to implement PushKit service within my app ( Voip app ), but i have following doubt: I see that i can generate only production voip certificate , it works if i try

3条回答
  •  盖世英雄少女心
    2020-11-28 04:54

    Today I explored this in great detail. I, too, was wondering how to use the generated push token on a development build when Apple only allows us to generate a production VoIP push certificate.

    On the server, you have to send a production push to gateway.push.apple.com and a development/sandbox push to gateway.sandbox.push.apple.com. I was able to generate and receive VoIP pushes on a development build of my app using the production VoIP certificate on gateway.sandbox.push.apple.com. I have not yet tried, but assume it will also work on an ad hoc or production build and using gateway.push.apple.com.

    Also, note that push notifications do not work in the simulator at all.

提交回复
热议问题