SlideShare uma empresa Scribd logo
1 de 23
Apple notification push
Summary Example of notification Architecture APN IPHONE Authorization Yourcode in Xcode Myprovider Register Certificate Send a notification Return disableddevices Receive a notification push
Example of notification Exist 2 notification versions :  ,[object Object]
 Remote Notification PushWe work with second type of notification
Architecture APN FeedBack server send notification In JSON. It indicate you, device who uninstall application or device  dysfunctional  Gateway server receive notification In JSON. After reception, it sends  notification to selected device
IPHONE Authorization To receive notification in IPHONE, users must accept  to notification reception. Once to accept, you must register  identifier of  IPHONE to send it to corporate server (your provider)
In yourAppDelegate Always use application:didFinishLaunchingWithOptions: method for launching your application when it have options This method, we ask iphone ID user to receive notification or not …
Your code in Xcode This code sends device identifier to your provider to register them. This code must be always in AppDelegate Application Delegate of UIApplication must be use Next slide presents my code  Application:didRegisterForRemoteNotificationsWithDeviceToken must be called; The register always must be made.
My code Function which recover Device ID and remove space blank. After call a function in background Function which send info to your provider. Baseurlregister is my url address of my serveur
My provider My script make in PHP and may be use in other programming language Your server must be accessible (choose a web server much easier)
My PHP code register IDIPHONE
Message Format To transfer a message, you use JSON Format includes alert message, badge, and sound You can use a personalize sound to put in you application 
Example This code send a alert message, use a default sound of IPHONE and notify app to 1  Don’t worry to write json, PHP have a function which allow to convert a table to json
certificate Don’t  think to send notification without minimum security level You must create a security certificate and send it to iphone provisionning portal  and recover the new one in iphone provisionning portal  of your application. Procedure explained on developer portal, don’t forgot enable notification push service
Create a certificate
certificate After to inform apple of your certificate, we transform it to regroup all information with openssl (download it if you didn’t have it)
Certificate .PEM Open your terminal and tapez Test yourconnection, if failreverifyyour certificat, it’sbad
Send a notification on gateway To communicate with gateway sandbox, we go to create a secured network by using ssl protocol. My script is in php, my certificate recently created must put in folder protected by htacess Warning if you do not protect your certificate, an hacker  can send a lot of notification in your place.
Script sendNotif.php
Return disableddevices on feedback.sandbox
Receive a notification push ,[object Object]
You have 2 options
when application enter in background

Mais conteúdo relacionado

Mais procurados

Code Camp - Presentation - Windows 10 - (Cortana)
Code Camp - Presentation - Windows 10 - (Cortana)Code Camp - Presentation - Windows 10 - (Cortana)
Code Camp - Presentation - Windows 10 - (Cortana)
Edward Moemeka
 
Ubunto Server VPN Implementation
Ubunto Server VPN ImplementationUbunto Server VPN Implementation
Ubunto Server VPN Implementation
Daisy LaFlamme
 
Securing the PHP Environment with PHPSecInfo
Securing the PHP Environment with PHPSecInfoSecuring the PHP Environment with PHPSecInfo
Securing the PHP Environment with PHPSecInfo
funkatron
 

Mais procurados (15)

REST is not enough: Using Push Notifications to better support your mobile cl...
REST is not enough: Using Push Notifications to better support your mobile cl...REST is not enough: Using Push Notifications to better support your mobile cl...
REST is not enough: Using Push Notifications to better support your mobile cl...
 
From Push Technology to Real-Time Messaging and WebSockets
From Push Technology to Real-Time Messaging and WebSocketsFrom Push Technology to Real-Time Messaging and WebSockets
From Push Technology to Real-Time Messaging and WebSockets
 
Open Source Problem Solving
Open Source Problem SolvingOpen Source Problem Solving
Open Source Problem Solving
 
Code Camp - Presentation - Windows 10 - (Cortana)
Code Camp - Presentation - Windows 10 - (Cortana)Code Camp - Presentation - Windows 10 - (Cortana)
Code Camp - Presentation - Windows 10 - (Cortana)
 
Ubunto Server VPN Implementation
Ubunto Server VPN ImplementationUbunto Server VPN Implementation
Ubunto Server VPN Implementation
 
Tropo Presentation for TADHack
Tropo Presentation for TADHackTropo Presentation for TADHack
Tropo Presentation for TADHack
 
Securing the PHP Environment with PHPSecInfo
Securing the PHP Environment with PHPSecInfoSecuring the PHP Environment with PHPSecInfo
Securing the PHP Environment with PHPSecInfo
 
Twilio Signal 2016 Serverless Contact Center
Twilio Signal 2016 Serverless Contact CenterTwilio Signal 2016 Serverless Contact Center
Twilio Signal 2016 Serverless Contact Center
 
Building Tropo Apps with Grails
Building Tropo Apps with GrailsBuilding Tropo Apps with Grails
Building Tropo Apps with Grails
 
LINE Things - LINE IoT平台新技術分享
LINE Things - LINE IoT平台新技術分享LINE Things - LINE IoT平台新技術分享
LINE Things - LINE IoT平台新技術分享
 
Otra forma de hacer aplicaciones de telefonía
Otra forma de hacer aplicaciones de telefoníaOtra forma de hacer aplicaciones de telefonía
Otra forma de hacer aplicaciones de telefonía
 
Windows phone 8 session 10
Windows phone 8 session 10Windows phone 8 session 10
Windows phone 8 session 10
 
Thursday webinar deep dive into docu sign certification
Thursday webinar   deep dive into docu sign certificationThursday webinar   deep dive into docu sign certification
Thursday webinar deep dive into docu sign certification
 
Develop your website with ROR
Develop your website with RORDevelop your website with ROR
Develop your website with ROR
 
Tropo: Telephony in the Cloud
Tropo: Telephony in the CloudTropo: Telephony in the Cloud
Tropo: Telephony in the Cloud
 

Destaque

Учням — цікаво, вчителям — легко. Немає нічого більш упорядкованого, ніж природа
Учням — цікаво, вчителям — легко. Немає нічого більш упорядкованого, ніж природаУчням — цікаво, вчителям — легко. Немає нічого більш упорядкованого, ніж природа
Учням — цікаво, вчителям — легко. Немає нічого більш упорядкованого, ніж природа
Електронні книги Ранок
 
Romance powerpoint
Romance powerpointRomance powerpoint
Romance powerpoint
betha2media
 
Filme terror 2013
Filme terror 2013Filme terror 2013
Filme terror 2013
Rafael Wolf
 

Destaque (17)

Учням — цікаво, вчителям — легко. Немає нічого більш упорядкованого, ніж природа
Учням — цікаво, вчителям — легко. Немає нічого більш упорядкованого, ніж природаУчням — цікаво, вчителям — легко. Немає нічого більш упорядкованого, ніж природа
Учням — цікаво, вчителям — легко. Немає нічого більш упорядкованого, ніж природа
 
State of Search: Local SEO
State of Search: Local SEOState of Search: Local SEO
State of Search: Local SEO
 
SinterklaasbezoektEemland.nl
SinterklaasbezoektEemland.nl SinterklaasbezoektEemland.nl
SinterklaasbezoektEemland.nl
 
Pycon 2016-open-space
Pycon 2016-open-spacePycon 2016-open-space
Pycon 2016-open-space
 
8617 Taylor Road
8617 Taylor Road8617 Taylor Road
8617 Taylor Road
 
Alumni talk-university-of-kachchh
Alumni talk-university-of-kachchhAlumni talk-university-of-kachchh
Alumni talk-university-of-kachchh
 
Survey Monkey Results
Survey Monkey ResultsSurvey Monkey Results
Survey Monkey Results
 
News Release
News ReleaseNews Release
News Release
 
Romance powerpoint
Romance powerpointRomance powerpoint
Romance powerpoint
 
RobertJMontgomeryJR V4
RobertJMontgomeryJR V4RobertJMontgomeryJR V4
RobertJMontgomeryJR V4
 
Mart6ha
Mart6haMart6ha
Mart6ha
 
Social Media Calender
Social Media CalenderSocial Media Calender
Social Media Calender
 
Filme terror 2013
Filme terror 2013Filme terror 2013
Filme terror 2013
 
Continuous Deployment with Containers
Continuous Deployment with ContainersContinuous Deployment with Containers
Continuous Deployment with Containers
 
Feature Release
Feature ReleaseFeature Release
Feature Release
 
Davidson Capital - NOAH15 London
Davidson Capital - NOAH15 LondonDavidson Capital - NOAH15 London
Davidson Capital - NOAH15 London
 
Data science bootcamp day 3
Data science bootcamp day 3Data science bootcamp day 3
Data science bootcamp day 3
 

Semelhante a Apple notification push

pentest mobile app issue
pentest mobile app issuepentest mobile app issue
pentest mobile app issue
shekar M
 

Semelhante a Apple notification push (20)

push_notification
push_notificationpush_notification
push_notification
 
Configure & send push notification on i os device
Configure & send push notification on i os deviceConfigure & send push notification on i os device
Configure & send push notification on i os device
 
Push notifications with dashboard and swift
Push notifications with dashboard and swiftPush notifications with dashboard and swift
Push notifications with dashboard and swift
 
Swift to send Push Notifications with Parse Dashboard and
Swift to send Push Notifications with Parse Dashboard and Swift to send Push Notifications with Parse Dashboard and
Swift to send Push Notifications with Parse Dashboard and
 
Implementation of Push Notification in React Native Android app using Firebas...
Implementation of Push Notification in React Native Android app using Firebas...Implementation of Push Notification in React Native Android app using Firebas...
Implementation of Push Notification in React Native Android app using Firebas...
 
Apple push notification service
Apple push notification serviceApple push notification service
Apple push notification service
 
Appium_set_up
Appium_set_upAppium_set_up
Appium_set_up
 
Building an SSO platform in php (Zendcon 2010)
Building an SSO platform in php (Zendcon 2010)Building an SSO platform in php (Zendcon 2010)
Building an SSO platform in php (Zendcon 2010)
 
Push Notification with Unity in iOS using App42 Backend
Push Notification with Unity in iOS using App42 BackendPush Notification with Unity in iOS using App42 Backend
Push Notification with Unity in iOS using App42 Backend
 
Appium Presentation
Appium Presentation Appium Presentation
Appium Presentation
 
Push Notification
Push NotificationPush Notification
Push Notification
 
Using API Platform to build ticketing system #symfonycon
Using API Platform to build ticketing system #symfonyconUsing API Platform to build ticketing system #symfonycon
Using API Platform to build ticketing system #symfonycon
 
Connecting Remotely to your Computer from an iPad or iPhone
Connecting  Remotely  to your Computer from an iPad or iPhoneConnecting  Remotely  to your Computer from an iPad or iPhone
Connecting Remotely to your Computer from an iPad or iPhone
 
appiumpresent-211128171811.pptx projet de presentation
appiumpresent-211128171811.pptx projet de presentationappiumpresent-211128171811.pptx projet de presentation
appiumpresent-211128171811.pptx projet de presentation
 
The Mobile ToolChain with Fastlane - Code Red Talk at RedBlackTree
The Mobile ToolChain with Fastlane - Code Red Talk at RedBlackTreeThe Mobile ToolChain with Fastlane - Code Red Talk at RedBlackTree
The Mobile ToolChain with Fastlane - Code Red Talk at RedBlackTree
 
Desarrollo AIR Mobile
Desarrollo AIR MobileDesarrollo AIR Mobile
Desarrollo AIR Mobile
 
pentest mobile app issue
pentest mobile app issuepentest mobile app issue
pentest mobile app issue
 
Hospital app project (how to upload app)
Hospital app project (how to upload app)Hospital app project (how to upload app)
Hospital app project (how to upload app)
 
How to submit ios app in Appstore
How to submit ios app in AppstoreHow to submit ios app in Appstore
How to submit ios app in Appstore
 
MSR iOS Tranining
MSR iOS TraniningMSR iOS Tranining
MSR iOS Tranining
 

Último

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 

Último (20)

Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 

Apple notification push

  • 2. Summary Example of notification Architecture APN IPHONE Authorization Yourcode in Xcode Myprovider Register Certificate Send a notification Return disableddevices Receive a notification push
  • 3.
  • 4. Remote Notification PushWe work with second type of notification
  • 5. Architecture APN FeedBack server send notification In JSON. It indicate you, device who uninstall application or device dysfunctional Gateway server receive notification In JSON. After reception, it sends notification to selected device
  • 6. IPHONE Authorization To receive notification in IPHONE, users must accept to notification reception. Once to accept, you must register identifier of IPHONE to send it to corporate server (your provider)
  • 7. In yourAppDelegate Always use application:didFinishLaunchingWithOptions: method for launching your application when it have options This method, we ask iphone ID user to receive notification or not …
  • 8. Your code in Xcode This code sends device identifier to your provider to register them. This code must be always in AppDelegate Application Delegate of UIApplication must be use Next slide presents my code Application:didRegisterForRemoteNotificationsWithDeviceToken must be called; The register always must be made.
  • 9. My code Function which recover Device ID and remove space blank. After call a function in background Function which send info to your provider. Baseurlregister is my url address of my serveur
  • 10. My provider My script make in PHP and may be use in other programming language Your server must be accessible (choose a web server much easier)
  • 11. My PHP code register IDIPHONE
  • 12. Message Format To transfer a message, you use JSON Format includes alert message, badge, and sound You can use a personalize sound to put in you application 
  • 13. Example This code send a alert message, use a default sound of IPHONE and notify app to 1 Don’t worry to write json, PHP have a function which allow to convert a table to json
  • 14. certificate Don’t think to send notification without minimum security level You must create a security certificate and send it to iphone provisionning portal and recover the new one in iphone provisionning portal of your application. Procedure explained on developer portal, don’t forgot enable notification push service
  • 16. certificate After to inform apple of your certificate, we transform it to regroup all information with openssl (download it if you didn’t have it)
  • 17. Certificate .PEM Open your terminal and tapez Test yourconnection, if failreverifyyour certificat, it’sbad
  • 18. Send a notification on gateway To communicate with gateway sandbox, we go to create a secured network by using ssl protocol. My script is in php, my certificate recently created must put in folder protected by htacess Warning if you do not protect your certificate, an hacker can send a lot of notification in your place.
  • 20. Return disableddevices on feedback.sandbox
  • 21.
  • 22. You have 2 options
  • 23. when application enter in background
  • 25. When application enter in background you must use thismethod
  • 26. -(void) application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo
  • 27. When application start because a notification, our information concerning notification
  • 28.
  • 29. Receive notification when application wasn’tstarting You verify if option isnull. If null, youstart application normallyotherwiseyoutake information insidelauchoptions variable. if user, duringalert notification, close it, youdidn’t have badge on your application execpt in applicationIconeBadge.
  • 30. Conclusion If there are a lot of mistakes, sorrymyenglishis middle but in the picture, youunderstandusing of push notification. Regardingdevolepment i use feedback.sandox and gateway.sandbox and developmentcertificate, but whenyourun in production you must use feedback an and not feedback.sandboxeventhings for gateway. You must have production certificate