Swift2. How do I sent push to my users?

I haven’t changed anything… But Msg (to my own device) isn’t sending…

Do you get an error when you publish a message or the message does not arrive? Please provide more details.

I think I have found the problem, but I don’t know what to do…
If I install the app from xcode (so the develop version) I can send push from backendless.
If I install the same build from App Store (so the distribute version), I can’t.
But I have created the certificate as distribution cert. (it said distribution & sandbox).

What do I need to change within xcode?
Because the problem obviously is, that it only works within sandbox.

David,

Verify that the certificate deployed to Backendless is indeed the universal kind (Distribution and Sandbox.

The XCode setup is documented here:
https://backendless.com/documentation/messaging/ios/messaging_requirements.htm

Regards,
Mark

Hey. At Backendless, it HAS TO BE the universal kind, because I haven’t downloaded another one :S

I will try the document you’ve provided asap and am getting back to you.
Thank you so much for your help. It is very appreciated.

Okay. Well. Yes. I found the mistake in the meantime…
I’m sure I’ve uploaded the app to connect with “development” profile activated within Xcode…

At least now I have made myself a How-To and it is working pretty great for me…

So yes. thank you. issue solved. i’m perfectly able to send pushes.

Hi David, how did you solve this problem? I am having similar issues

follow 100% accurate these two tutorials, and it works:

https://backendless.com/documentation/messaging/ios/messaging_push_notification_setup_ios.htm

https://backendless.com/documentation/messaging/ios/messaging_requirements.htm

i have now several apps and they all work.

also you need to make sure to download a development certificate for development and a distribution certificate for distribution and set the one you need whether you are testing in development or already uploaded to the store.

I currently have a production (universal) one, and it says it can be used for both Development and Production.

Does that not work?

It’s just important, that in your Xcode, at the moment you deploy your App the correct settings are set for either development or distribution.

When you mention the setting in Xcode, do you mean the setting under Targets -> Build Settings -> Signing -> Code Signing Identity -> Debug, and Release to be “iOS Developer” if I am debugging, and “iOS Distribution” if I am uploading it to the app store?

I still cannot get it to work unfortunately :frowning: