GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
02/26/13 12:40 AM (12 years ago)

[Resolved] iOS Push Notification Question

Hello, I'm finally getting around to trying push notification on my iOS app (already have it working in Android), but am running into a problem. I'm following the guides put together by @David and @Niraj, but for some reason it's not quite working. I'm wondering if it's a procedural error on my part. The guides seem to assume that you don't have a Certificate Request or Develpment/Distribution Certificates. I have all those from when I set up Xcode, and when I created certificates for the app I'm working on. So, using that Certificate Request, I was able to generate the .p12 files for both Dev and Dist, and converted them to .pem files. But, Xcode says its not registering when I run the app. So, my question is...is it valid to use the Certificate Request I generated early on during the configuration of Xcode, or am I required to create a specific one for use with the app and push? It wouldn't surprise me if I needed to, but I'm not sure I understand enough about Apple code signing to know why. Thanks! Mark
 
Kaybee
buzztouch Evangelist
Profile
Posts: 659
Reg: Sep 22, 2012
Perth, Australi...
44,690
like
02/26/13 12:57 AM (12 years ago)
"Silly Question" Did you change your cert setting to include Push Notifications? Once you have done that you will need to download the new certificate because it would have changed.
 
Korkut Ata
Aspiring developer
Profile
Posts: 108
Reg: Aug 09, 2011
Luxembourg
11,580
like
02/26/13 01:21 AM (12 years ago)
I created brand new certificate request for both and be sure that both developing and distribution provision profiles should not be with * asterix but numbered id. Hope this helps.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
02/26/13 07:32 AM (12 years ago)
@kaybe - That might be it. I did change the cert settings to include push, and I did a refresh in Organizer, which I assumed would download any updated certs. But maybe it doesn't work that way. I'll try downloading them again. @korkut - They aren't wildcard certs. I may try requesting a new cert request. Thanks! Mark
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
02/26/13 07:46 AM (12 years ago)
I'm having problems still. I know my certificates are correct as I have been given the 'Push Notification' which all my testers have accepted and the devices are shown in my self hosting control panel. I have even spoken with my host to unblock the required ports and still my push doesn't work. Its so hit and miss with Apple. A ridiculous process t o go through. I don't feel like I'll ever get past the PN for apple. Android no problem.
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
02/26/13 07:46 AM (12 years ago)
Some ideas: DId you set the app to prompt for push notifications in the core settings? Have you checked the push URL in core settings? Jake
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
02/26/13 09:10 AM (12 years ago)
Yep, it's set up to prompt, and I'm using the default URL in core settings, which works for Android. In the Xcode debug console, there's some message about account not existing or something...I need to get back on my Mac and post that. I'm thinking this is procedure with the certs or something...or by not having requested a new certificate request. I'll keep plugging away! Mark
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
02/26/13 10:21 AM (12 years ago)
I have also setup my push in core settings and my push URL is also displayed. I don't know if I have the patients GoNorthWest has,as I've been trying to get Push going on my app builds for several months.
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
02/26/13 11:23 PM (12 years ago)
In the Xcode Organizer, I have noticed that deleting ALL of the Provisioning Profiles often makes things work. Then a refresh brings down all the Profiles, all anew. -- Niraj
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
02/26/13 11:41 PM (12 years ago)
Hi Niraj, Funny that you should post this just now, as I was in the middle of going through your excellent documentation on the subject. It works! What I did was this: * Create a new Certificate Signing Request using my App Name * Created the .p12 files as instructed * Deleted my old Development Provisioning certificate and created a new one * Singed it with the new certificate * Enjoyed watching the request for Push Notifications! This feature totally rocks! Thanks, Niraj, for the excellent documentation! Mark
 
Kaybee
buzztouch Evangelist
Profile
Posts: 659
Reg: Sep 22, 2012
Perth, Australi...
44,690
like
02/27/13 01:38 AM (12 years ago)
Mark, Did you get production push right? To live apps? Kristen
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.