My exported .ipa file of push notification app didn't send notification on device when installing via iTunes instead of Xcode build [Development]

后端 未结 2 1011
情话喂你
情话喂你 2021-01-07 10:31

I used OneSignal for push notification service.

(Development) I set Provision Profile of push notification service for my app

When I run from Xcode,everythin

相关标签:
2条回答
  • 2021-01-07 10:37

    The reason why notification didn't come in when I install with my custom .ipa that was create by Xcode archive manager was,it did set default provision profile generated by Xcode for testing on Devices which wasn't include for APNS.

    So,in order to make it work when testing development APNS using .ipa files installation via iTunes instead of Xcode build,you need to use your custom provision profile that was created by yours for testing APNS for iOS Development(Not Distribution APNS).

    1.Go to Product>Scheme>Edit Scheme and set the Archive Tab to Debug

    2.Then connect to your device and tap Product>Archive

    3.Then your Xcode will create Archive for your file that you can upload or export as .ipa.Do like these picture

    Choose

    Then it will ask you which provision profile that you gonna use,choose like me at below if u set custom provision profile at your build setting

    Then export as .ipa for all compatible devices.And then you can receive notifications like you run from Xcode by installing that .ipa via iTunes

    Happy Testing!!!

    0 讨论(0)
  • 2021-01-07 10:55

    As you have able to recieve the push notification on every device when you run from the Xcode so it did not problem in APNS or Provision Profile. I thought it might be a problem at OneSignal service.

    For checking the push notication please look into the Mac application which created by noodlewerk.

    Please download and open it. After that It will ask for provide the .p12 file(which you will get from the keychain) and device token. After that click on the "Push" button which will send you the sample push notification message on respective device.

    Hope it will help you.

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