Discussion Forums  >  Xcode, Errors, Installing, Configuring

Replies: 5    Views: 1073

WallE
Aspiring developer
Profile
Posts: 73
Reg: Jan 29, 2012
Burlington, Can...
2,880
04/13/13 08:28 AM (12 years ago)

Push Notification 'Code-Signing' issues in Xcode

I've created both dev and prod APNs certs associated to my unique App ID to use push notifications with my app. However, these APNs certs don't show up in my list of code-signing identity options in Xcode for this app. I do see my "iPhone Developer" and "iPhone Distribution" certs that are associated to my App ID and I can load the app on a physical device using this code-signing but the push notification config for the app does not get generated in the iPhone Settings/Notifications section. My App ID matches between my regular dev/dist code-signing and the APNs certs I created via the "Certificates, Identifiers & Profiles" section of the "Provisioning Portal". I've even tried revoking ALL my certs and provisioning profiles and re-created all of them but that didn't fix it. I do see all my certs listed in my Keychain Access: iPhone Developer, iPhone Distribution and dev/prod APNs certs. The APNs certs in my Keychain Access are listed as "Apple Development IOS Push Services: XXXXXXXX:XXXXXXXXX" with no note of what App ID they are associated to. I would have expected to see something like: Apple Development IOS Push Services: com.YYY.ZZZZZZZZ I've fresh out of ideas to get my push notifications working. Thx for any help.
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
04/13/13 11:20 AM (12 years ago)
Hi @WallE, You won't see APN certificates in Xcode. Your Developer Profile and Distribution Profile will be associated with the APN Certificates you set up. Hope that makes sense? On mobile so will check back when on computer. Ian
 
WallE
Aspiring developer
Profile
Posts: 73
Reg: Jan 29, 2012
Burlington, Can...
2,880
like
04/13/13 12:45 PM (12 years ago)
Hi Ian, This is just my 2nd app with push but in the first I did see the profiles show up in Xcode. Is it different with the last Xcode updates and new Apple Provisioning portal from a week or so ago? Also, when I side load the add on my Apple device I don't end up seeing the usual entry in the iPhone "Notifications" section for my app and when the app runs on the device it doesn't ask me to accept push notifications. I do have the setting in the "BT_config.txt" file: "promptForPushNotifications":"1", Thx for any help, Kirk
 
WallE
Aspiring developer
Profile
Posts: 73
Reg: Jan 29, 2012
Burlington, Can...
2,880
like
04/16/13 10:15 AM (12 years ago)
I have corrected my issue with APNs certificates now. As it happens I was requesting my certs and provisioning profiles in the wrong order for use with push notifications. I have now successfully created APNs certs/profiles that both Xcode and my Apple devices recognize for use by push notifications. I was originally creating certs/profiles in the following order: 1) Dev and Dist certs (associated to my app requiring push notifications) 2) Provisioning profiles (associated to my app requiring push notifications) 3) APNs certs (associated to my app requiring push notifications) I was thinking that when my my APNs certs were created they would auto-link to my Dev and Prod certs (even with the order I created them). So I found out by trial and error today that the correct order is: 1) Dev and Dist certs (associated to my app requiring push notifications) 2) APNs certs (associated to my app requiring push notifications) 3) Provisioning profiles (associated to my app requiring push notifications) Simple when you hit on correct order. Another day of learning.
 
JimmySaver
Aspiring developer
Profile
Posts: 187
Reg: Apr 09, 2012
location unknow...
5,870
like
05/08/13 09:07 AM (12 years ago)
Afternoon, @WallE. I seem to be having a similar issue to you in that the certificates that I'm generating through the Keychain manager then placing in the Developer Portal are not "connecting" to my BundleID in order to create a Provisioning Profile. I can't create Distribution Provisioning Profile as there are "no certificates available" for the App ID. Yet, there are distribution certificates showing in the certificates manager. When I try to create a Development Provisioning Profile, I am only allowed to select one Certificate and it is neither of the APNs certificates I have just generated. The only thing I can think of now is to pretty much rip up everything and start again!
 
WallE
Aspiring developer
Profile
Posts: 73
Reg: Jan 29, 2012
Burlington, Can...
2,880
like
05/08/13 03:28 PM (12 years ago)
It might me easier (as I found out) to just remove all your iOS certs from your keychain and also delete all your certs and provisioning profiles from the iOS Dev portal and start over. Make sure you create your certs using the App ID they will be used to sign in Xcode and follow this order: 1) Dev and Dist certs (associated to you app requiring push notifications) 2) APNs certs (associated to your app requiring push notifications) 3) Provisioning profiles (associated to your app requiring push notifications) Good luck.
 

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.