Download - APNS para "casi" todos
![Page 1: APNS para "casi" todos](https://reader035.vdocuments.mx/reader035/viewer/2022062319/55827833d8b42adf088b4acb/html5/thumbnails/1.jpg)
Abraham BarreraDesarrolladorabout.me/abrahambarrera
APNS para “casi” todos
![Page 2: APNS para "casi" todos](https://reader035.vdocuments.mx/reader035/viewer/2022062319/55827833d8b42adf088b4acb/html5/thumbnails/2.jpg)
:Dc“CASI”
![Page 3: APNS para "casi" todos](https://reader035.vdocuments.mx/reader035/viewer/2022062319/55827833d8b42adf088b4acb/html5/thumbnails/3.jpg)
:Dc
![Page 4: APNS para "casi" todos](https://reader035.vdocuments.mx/reader035/viewer/2022062319/55827833d8b42adf088b4acb/html5/thumbnails/4.jpg)
Apple Push Notification Service
:Dc
![Page 5: APNS para "casi" todos](https://reader035.vdocuments.mx/reader035/viewer/2022062319/55827833d8b42adf088b4acb/html5/thumbnails/5.jpg)
:DciOS
![Page 6: APNS para "casi" todos](https://reader035.vdocuments.mx/reader035/viewer/2022062319/55827833d8b42adf088b4acb/html5/thumbnails/6.jpg)
:DcObjective-C
![Page 7: APNS para "casi" todos](https://reader035.vdocuments.mx/reader035/viewer/2022062319/55827833d8b42adf088b4acb/html5/thumbnails/7.jpg)
:Dc
![Page 8: APNS para "casi" todos](https://reader035.vdocuments.mx/reader035/viewer/2022062319/55827833d8b42adf088b4acb/html5/thumbnails/8.jpg)
:Dc
![Page 9: APNS para "casi" todos](https://reader035.vdocuments.mx/reader035/viewer/2022062319/55827833d8b42adf088b4acb/html5/thumbnails/9.jpg)
Aplicaciones Web móviles
>
Aplicaciones Nativas
![Page 10: APNS para "casi" todos](https://reader035.vdocuments.mx/reader035/viewer/2022062319/55827833d8b42adf088b4acb/html5/thumbnails/10.jpg)
Hace 3 años
:Dc
![Page 11: APNS para "casi" todos](https://reader035.vdocuments.mx/reader035/viewer/2022062319/55827833d8b42adf088b4acb/html5/thumbnails/11.jpg)
:Dc
![Page 12: APNS para "casi" todos](https://reader035.vdocuments.mx/reader035/viewer/2022062319/55827833d8b42adf088b4acb/html5/thumbnails/12.jpg)
Hoy
:Dc
![Page 13: APNS para "casi" todos](https://reader035.vdocuments.mx/reader035/viewer/2022062319/55827833d8b42adf088b4acb/html5/thumbnails/13.jpg)
![Page 14: APNS para "casi" todos](https://reader035.vdocuments.mx/reader035/viewer/2022062319/55827833d8b42adf088b4acb/html5/thumbnails/14.jpg)
JQuery Mobile, jQTouch, Sencha
:Dc
![Page 15: APNS para "casi" todos](https://reader035.vdocuments.mx/reader035/viewer/2022062319/55827833d8b42adf088b4acb/html5/thumbnails/15.jpg)
¿ GPS ?
:Dc
![Page 16: APNS para "casi" todos](https://reader035.vdocuments.mx/reader035/viewer/2022062319/55827833d8b42adf088b4acb/html5/thumbnails/16.jpg)
![Page 17: APNS para "casi" todos](https://reader035.vdocuments.mx/reader035/viewer/2022062319/55827833d8b42adf088b4acb/html5/thumbnails/17.jpg)
![Page 18: APNS para "casi" todos](https://reader035.vdocuments.mx/reader035/viewer/2022062319/55827833d8b42adf088b4acb/html5/thumbnails/18.jpg)
“Eso mismo lo podrías hacer desde una
aplicación Web en Safari”
![Page 19: APNS para "casi" todos](https://reader035.vdocuments.mx/reader035/viewer/2022062319/55827833d8b42adf088b4acb/html5/thumbnails/19.jpg)
Apple Push Notification Service
Utilizar tecnología Push
![Page 20: APNS para "casi" todos](https://reader035.vdocuments.mx/reader035/viewer/2022062319/55827833d8b42adf088b4acb/html5/thumbnails/20.jpg)
Sonidos alertas
distintivos
Apple Push Notification Service
![Page 21: APNS para "casi" todos](https://reader035.vdocuments.mx/reader035/viewer/2022062319/55827833d8b42adf088b4acb/html5/thumbnails/21.jpg)
En cualquier momento
:Dc
Apple Push Notification Service
![Page 22: APNS para "casi" todos](https://reader035.vdocuments.mx/reader035/viewer/2022062319/55827833d8b42adf088b4acb/html5/thumbnails/22.jpg)
Con la Aplicación “Cerrada”
:Dc
Apple Push Notification Service
![Page 23: APNS para "casi" todos](https://reader035.vdocuments.mx/reader035/viewer/2022062319/55827833d8b42adf088b4acb/html5/thumbnails/23.jpg)
Aplicaciones Web móviles
>
Aplicaciones Nativas
![Page 24: APNS para "casi" todos](https://reader035.vdocuments.mx/reader035/viewer/2022062319/55827833d8b42adf088b4acb/html5/thumbnails/24.jpg)
Aplicaciones Nativas
>
Aplicaciones Web móviles
![Page 25: APNS para "casi" todos](https://reader035.vdocuments.mx/reader035/viewer/2022062319/55827833d8b42adf088b4acb/html5/thumbnails/25.jpg)
Aplicaciones Nativas Híbridas
>
Aplicaciones Web móviles
![Page 26: APNS para "casi" todos](https://reader035.vdocuments.mx/reader035/viewer/2022062319/55827833d8b42adf088b4acb/html5/thumbnails/26.jpg)
Apple Push Notification Service
:Dc
![Page 27: APNS para "casi" todos](https://reader035.vdocuments.mx/reader035/viewer/2022062319/55827833d8b42adf088b4acb/html5/thumbnails/27.jpg)
¿Qué Necesitamos?
:Dc
![Page 28: APNS para "casi" todos](https://reader035.vdocuments.mx/reader035/viewer/2022062319/55827833d8b42adf088b4acb/html5/thumbnails/28.jpg)
Apple Push Notification Service
Una aplicación iOS bien Configurada
Un Provider (aplicación web)
Un iPhone Registrado
![Page 29: APNS para "casi" todos](https://reader035.vdocuments.mx/reader035/viewer/2022062319/55827833d8b42adf088b4acb/html5/thumbnails/29.jpg)
Apple Push Notification Service
![Page 30: APNS para "casi" todos](https://reader035.vdocuments.mx/reader035/viewer/2022062319/55827833d8b42adf088b4acb/html5/thumbnails/30.jpg)
Apple Push Notification Service
![Page 31: APNS para "casi" todos](https://reader035.vdocuments.mx/reader035/viewer/2022062319/55827833d8b42adf088b4acb/html5/thumbnails/31.jpg)
Apple Push Notification Service
![Page 32: APNS para "casi" todos](https://reader035.vdocuments.mx/reader035/viewer/2022062319/55827833d8b42adf088b4acb/html5/thumbnails/32.jpg)
Una Aplicación Bien configurada
:Dc
![Page 34: APNS para "casi" todos](https://reader035.vdocuments.mx/reader035/viewer/2022062319/55827833d8b42adf088b4acb/html5/thumbnails/34.jpg)
Un iPhone Registrado
:Dc
![Page 35: APNS para "casi" todos](https://reader035.vdocuments.mx/reader035/viewer/2022062319/55827833d8b42adf088b4acb/html5/thumbnails/35.jpg)
- (void)applicationDidFinishLaunching:(UIApplication *)application { [[UIApplication sharedApplication]
registerForRemoteNotificationTypes: (UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound)]; }
![Page 36: APNS para "casi" todos](https://reader035.vdocuments.mx/reader035/viewer/2022062319/55827833d8b42adf088b4acb/html5/thumbnails/36.jpg)
- (void)application:(UIApplication *)app DidRegisterForRemoteNotificationsWithDeviceToken:
(NSData *)deviceToken {
[ProviderHelper setDeviceWithToken: deviceToken]; }
![Page 37: APNS para "casi" todos](https://reader035.vdocuments.mx/reader035/viewer/2022062319/55827833d8b42adf088b4acb/html5/thumbnails/37.jpg)
- (void)application:(UIApplication *)application didReceiveRemoteNotification: (NSDictionary *)userInfo { for (id key in userInfo) { NSLog(@"key: %@, value: %@", key,
[userInfo objectForKey:key]); } }
![Page 38: APNS para "casi" todos](https://reader035.vdocuments.mx/reader035/viewer/2022062319/55827833d8b42adf088b4acb/html5/thumbnails/38.jpg)
Un Provider
:Dc
![Page 39: APNS para "casi" todos](https://reader035.vdocuments.mx/reader035/viewer/2022062319/55827833d8b42adf088b4acb/html5/thumbnails/39.jpg)
apn_on_rails:Dc
Apple Push Notification Service
![Page 40: APNS para "casi" todos](https://reader035.vdocuments.mx/reader035/viewer/2022062319/55827833d8b42adf088b4acb/html5/thumbnails/40.jpg)
sudo gem install apn_on_rails
:Dc
Apple Push Notification Service
![Page 41: APNS para "casi" todos](https://reader035.vdocuments.mx/reader035/viewer/2022062319/55827833d8b42adf088b4acb/html5/thumbnails/41.jpg)
device = APN::Device.create(:token => "EL TOKEN”)notification = APN::Notification.newnotification.device = devicenotification.badge = 5notification.sound = truenotification.alert = "El Mensaje va aquí"notification.save
APN::Notification.send_notifications
$ rake apn:notifications:deliver:Dc
Apple Push Notification Service
![Page 42: APNS para "casi" todos](https://reader035.vdocuments.mx/reader035/viewer/2022062319/55827833d8b42adf088b4acb/html5/thumbnails/42.jpg)
Si no le gusta RoR:Dc
![Page 43: APNS para "casi" todos](https://reader035.vdocuments.mx/reader035/viewer/2022062319/55827833d8b42adf088b4acb/html5/thumbnails/43.jpg)
http://www.easyapns.com/
:Dc
![Page 44: APNS para "casi" todos](https://reader035.vdocuments.mx/reader035/viewer/2022062319/55827833d8b42adf088b4acb/html5/thumbnails/44.jpg)
Abraham Barrera C.Desarrollador
http://about.me/abrahambarrera