ios - What things needed to add APN in .NET server -


as have serch on google not sure things needed implement apn in .net server. in php server create .pem file .net developer ask me .p12 file confuse.

as nice tutorial raywenderlich suggest thing need generate php server .pem file .net?

as tutorial suggest have

  • the csr (of developer certificate)
  • the private key p12 file (myapp.p12) (of development certificate)
  • the ssl certificate, aps_development.cer

and want send app adhoc distribution p12 file distribution certificate?

or tht have give .p12 file of distribution certificate , ssl certificate?

i think have things need.

you have aps_development.cer add in keychain access. display this...

enter image description here

after export certificate in .p12 file

enter image description here

enter image description here

add password if want

enter image description here

and mac ask user password verify

enter image description here

after thing got .p12 file of ssl certificate. add code appdelegate

- (bool)application:(uiapplication *)application didfinishlaunchingwithoptions:(nsdictionary *)launchoptions {     // let device know want receive push notifications     [[uiapplication sharedapplication] registerforremotenotificationtypes:         (uiremotenotificationtypebadge | uiremotenotificationtypesound | uiremotenotificationtypealert)];      return yes; }  - (void)application:(uiapplication*)application didregisterforremotenotificationswithdevicetoken:(nsdata*)devicetoken {     nslog(@"dilip token is: %@", devicetoken);        //remember token used @ server side }  - (void)application:(uiapplication*)application didfailtoregisterforremotenotificationswitherror:(nserror*)error {     nslog(@"dilip failed token, error: %@", error); } 

now have 2 thing first certificate.p12 file , device token give .net developer , done @ side notification.

at server side 2 link helpful implement apn @ server side.

link 1 link 2

and yes don't forget token apple display <a3002e43 c1d2d80d 95b0a1a6 893b3f7c c410a489 747b933d 04551d68 688c6c65> have remove space , bracket bcoz have problem when have implemented apn first time bcoz of space string must a3002e43c1d2d80d95b0a1a6893b3f7cc410a489747b933d04551d68688c6c65.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -