Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

iOS

kennedy otis
kennedy otis
3,570 Points

IOS Push Notifications

Hello guys I would like to ask for help concerning apple push notifications. Am making an app which fetches remote contents (php backend). I would like my clients to be receiving notifications in case of new content added to my remote database. I have a module which lists news and I would like when I add new news in the backend, then all people who have downloaded my app should receive a notification about the new content available.

Am still newbie to ios but with your direction / help I believe I can hack around this. I will really appreciate any help/resources . Thanks in advance :)

8 Answers

Patrick Donahue
Patrick Donahue
9,523 Points

Ray Wenderlich has a tutorial on it. Maybe that will help.

kennedy otis
kennedy otis
3,570 Points

Thanks. I have followed those step but I can not seem to get the certificate work. As per the tutorial, he creates the app id where he ends up creating APNs SSL certificate. Everything is fine but when I get to the part where I am have to create a provisioning profile, after selecting ios dev option, I get this screen asking for a certificate, which i expected to see the certificate created earlier to be available so that i can link it to the provision profile. For my case I do not see any certificates listed but instead I get an option to create new one. So this confuses me a little bit.. Is it that there are two certificates needed or what.. Confused.

http://www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1

Patrick Donahue
Patrick Donahue
9,523 Points

Parse seems to have a better tutorial for certificates. I always have trouble getting new profiles.

I figure the answer is yes, but do you have a paid developer account?

kennedy otis
kennedy otis
3,570 Points

Yes I have paid account. Infact I have an already in AppStore.. Just need to introduce push to ma app.. But to test local first.

Patrick Donahue
Patrick Donahue
9,523 Points

[Stack Overflow]9http://stackoverflow.com/questions/7361298/how-to-test-push-notification-is-working-in-my-application) This can help you once you get your certificate.

Sorry I cannot help more on fixing your certificate or more insight on push notifications.

kennedy otis
kennedy otis
3,570 Points

Thanks for at least trying.. I just don't get it why I don't see the certificate I created when it comes to creating a provisioning profile. I have followed all the steps both from ray and Parse but I don't seem to get the provisioning profile. I expect to see the certificate listed below as I created it when creating the app ID. Is there something am missing or should know about push notification certificates ?

kennedy otis
kennedy otis
3,570 Points

Finally I got it working.. Thanks for pointing me in the right direction. :)

Patrick Donahue
Patrick Donahue
9,523 Points

No problem! What was the answer?

kennedy otis
kennedy otis
3,570 Points

It was about the ssl certificate and the normal certificate. I was not having the normal certificate and thats why when I tried creating provisioning profile, there was not cert to link it to. In my mind I was expecting the ssl which I created when creating app ID to be the one being linked to the profile. I was wrong about that. Now its clear and when you pointed out that I needed to different certificate I saw my mistake. Thanks again.