I used OneSignal for push notification service.
(Development) I set Provision Profile of push notification service for my app
When I run from Xcode,everything works fine on every device.
But,when I create archive(.ipa) with Debug Scheme and install via iTunes,the device seem to connect to OneSignal Push Notification service.But,can't receive notification from our backend service that was connected to OneSignal.
So,I think there is a problem with APNS
Any help with that?Did I do something wrong.
If there was,please guide me?how to test push notification of iOS Development profile with archive (.ipa)?
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!!!
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.