【转】APNs消息推送完整讲解
https://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/IPhoneOSClientImp/IPhoneOSClientImp.html#//apple_ref/doc/uid/TP40008194-CH103-SW1 在项目的AppDelegate中的didFinishLaunchingWithOptions方法中加入下面的代码: Ios代码 [[UIApplicationsharedApplication]registerForRemoteNotificationTypes:(UIRemoteNotificationTypeAlert|UIRemoteNotificationTypeSound|UIRemoteNotificationTypeBadge)]; 通过registerForRemoteNotificationTypes方法,告诉应用程序,能接受push来的通知。 在项目的AppDelegate中添加下面的...