Discussion Forums  >  Self Hosted Control Panels

Replies: 5    Views: 82

@rob
Code is Art
Profile
Posts: 115
Reg: Dec 10, 2013
Alabama
8,800
01/17/14 10:01 AM (11 years ago)

Another iOS Push Notification thread

I looked through the archives and don't see this particular situation addressed. I have a App in design mode that I setup for Over The Air Distribution, got it downloaded to the device (it works perfectly) so I wanted to test Push Notifications on it, I have uploaded my .pem files everything looks good. The device is listed as a registered device in Control Panel however under "Mode" the value is (null). So when I try to send a Push Notification it errors because the device is not listed as either Live or Design. FYI, my App is in Design mode and I verified that the value is set in the config.txt file. Based on another thread I saw on another site, someone suggested that this happens if the SSL push certificate was created AFTER the Provisioning Profile. So I went in removed the original provisioning profile, and created a new one from scratch and applied my SSL certificate to it, still no change, I still get the (null) value under device mode. Anyone else seen this problem?
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
01/17/14 11:32 AM (11 years ago)
Hi @ RobWainwright Push can be tricky and so are certificates. Can you confirm if you re-compiled the app with the new provisioning profile? Also, is the apple provisioning profile for the app a dev profile?
 
@rob
Code is Art
Profile
Posts: 115
Reg: Dec 10, 2013
Alabama
8,800
like
01/17/14 11:42 AM (11 years ago)
Here were my steps: 1. Deleted all Dev/Deploy/Push certificates and keys on my macbook keychain 2. I revoked all Provisioning Profiles and all Certificates on the Apple Site (to start with a clean slate) 3. Created a new SSL Sandbox Push Certificate (imported, added to keychain, created .pem file etc. and uploaded to Control Panel) 3. Created a new Ad-Hoc Development Provisioning Profile and associated it with the new SSL Certificate (imported it to key chain etc.) 4. Opened project in Xcode and changed provisioning profile to the newly created profile, cleaned and rebuilt app, archived, uploaded to Control Panel
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
01/17/14 12:04 PM (11 years ago)
If you are running ad-hoc, in your app it might be that you need to not have your app in design mode, as ad-hoc is based on a release certificate.
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
01/17/14 12:05 PM (11 years ago)
Does push work for you with a development profile?
 
@rob
Code is Art
Profile
Posts: 115
Reg: Dec 10, 2013
Alabama
8,800
like
01/17/14 12:10 PM (11 years ago)
@AlanMac, I tried it first with just a standard development provisioning profile in design mode and then switched to the ad-hoc provisioning profile in design mode as a test. At this point the only thing I haven't tried is "live" mode, I guess I could give that a try, but based on everything I had read, I thought you could definitely test push in design mode, but maybe not.
 

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.