Contenu connexe
Similaire à APNS para "casi" todos (20)
Plus de Abraham Barrera (6)
APNS para "casi" todos
- 18. “ Eso mismo lo podrías hacer desde una aplicación Web en Safari”
- 28. Apple Push Notification Service Una aplicación iOS bien Configurada Un Provider (aplicación web) Un iPhone Registrado
- 35. - ( void )applicationDidFinishLaunching:(UIApplication *)application { [[UIApplication sharedApplication] registerForRemoteNotificationTypes : (UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound)]; }
- 36. - ( void )application:(UIApplication *)app DidRegisterForRemoteNotificationsWithDeviceToken: (NSData *)deviceToken { [ProviderHelper setDeviceWithToken: deviceToken ]; }
- 37. - ( void )application:(UIApplication *)application didReceiveRemoteNotification: (NSDictionary *)userInfo { for ( id key in userInfo) { NSLog( @"key: %@, value: %@" , key, [userInfo objectForKey:key]); } }
- 41. device = APN::Device.create(:token => "EL TOKEN”) notification = APN::Notification.new notification.device = device notification.badge = 5 notification.sound = true notification.alert = "El Mensaje va aquí" notification.save APN::Notification.send_notifications $ rake apn:notifications:deliver :Dc Apple Push Notification Service