I need a native iOS push to be sent from Backendless to my iPhone.
I’ve done all the stuff on profile/certificate generation
took PushNotify sample, replace APP_ID & SECRET_KEY with mine
start the app (with my profile on device) - device registered successfully, displayed in Messaging->Device
trying to send a message to it :
from Backendless console green response “Message scheduled”. But on the phone nothing.
from iPhone MessageStatus “SCHEDULED”. But on the phone nothing.
I tried with different options - broadcasting, sending to a specific device etc
I tried to push the messages both
for sending from console I tried such headers “ios-badge”:“1”,“ios-alert”:“alert message text”,“ios-sound”:“default”. Different message text. Select device and send to "Selected devices(1), send to “iOS Devices” - no difference.
The only visible result of the attempts:
17 Messages in App home in Backendless console
2 new channels(created from iOS) displayed in Messaging section, no Messages in the list
Questions:
How to debug such issue if no errors returned?
Is it possible that a problem with profile/certificate even if the device registered for pushes successfully?
Why do I see 17 Messages in App home in Backendless console, while no Messages in channels in Messaging section?
Also, it is very important to change the bundle identifier for the project to make sure it matches the App ID which you entered when created on the Apple Developer site.
Make sure to use the correct provisioning profile - the one that has your App ID.
Finally, make sure to upload the certificate to the Backendless backend, but it sounds like you already did that.
I had this same issue for quite a while but I have just resolved this by doing as the original post said, using the codegen version with my api and certificate. (And then using this code within my own app)
This is all well and good but I have found while using Backendless that the documentation is littered with errors and code that no longer work much like this. I’m really loving all of Backendless’ features except for its documentation.
I do have on question though, when it comes to launching the app on the app stores, is it simple switching the certificate on Backendless to the distribution one? Bit worried given the issues I found during development that something could go wrong during launch.
Regards,
Elijah
Indeed you can use Sandbox & Production provisioning profile, but in this case you have to set ‘iOS Distribution’ for Build Settings -> Code Signing -> Provisioning Profile option.
My problem was finally solved after profile/certificate re-generation and re-starting everything (reinstall certificates, restart xcode, reinstall app, reinstall certificate on backendless). Not sure what exactly helped finally.