If you want to find the true meaning of life, take a trip to Tibet.
作为提供者为程序开发和部署推送通知,必须通过iOS Developer Program Portal获得SSL证书。
每个证书限用于一个程序,使用程序的bundle ID作为标识。
证书有两种用途的:一种是针对sandbox(用于开发和测试),另外一种针对发布产品。
这两种运行环境拥有为各自指定的IP地址并且需要不同的证书。
还必须为两种不同的环境获取各自的provisioning profiles
推送:1.向苹果apns服务器注册[[UIApplication sharedApplication] registerForRemoteNotificationTypes:(UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound)];
2.注册成功application:(UIApplication *)app didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken
3.向app服务器注册
4.注册成功