background preloader

Apple Push Notification Services Tutorial: Part 1/2

Apple Push Notification Services Tutorial: Part 1/2
Learn how to add Push Notifications into your iPhone app! Update 4/12/2013: Fully updated for iOS 6 (original post by Matthijs Hollemans, update by Ali Hafizji). In iOS, apps can’t do a lot in the background. Apps are only allowed to do limited set of activities so battery life is conserved. But what if something interesting happens and you wish to let the user know about this, even if they’re not currently using your app? For example, maybe the user received a new tweet, their favorite team won the game, or their dinner is ready. Luckily, Apple has provided a solution to this. And when an event of interest occurs, the server-side component can send the app a push notification! Display a short text messagePlay a brief soundSet a number in a badge on the app’s icon You can combine these however you see fit; for example, play a sound and set the badge but not display a message. In this first part, you’ll learn how to configure your app to receive push notifications and receive a test message.

Loading… Local notifications and push notifications are ways for an application that isn’t running in the foreground to let its users know it has information for them. The information could be a message, an impending calendar event, or new data on a remote server. When presented by the operating system, local and push notifications look and sound the same. They can display an alert message or they can badge the application icon. When users are notified that the application has a message, event, or other data for them, they can launch the application and see the details. At a Glance Local notifications and push notifications have several important aspects you should be aware of. The Problem That Local and Push Notifications Solve Only one application can be active in the foreground at any time. Local and Push Notifications Are Different in Origination Local and push notifications serve different design needs. You Schedule a Local Notification, Register a Push Notification, and Handle Both See Also

Notifications Developer Docs Notifying the User The notification system allows your app to keep the user informed about events, such as new chat messages or a calendar event. Think of notifications as a news channel that alerts the user to important events as they happen or a log that chronicles events while the user is not paying attention. New in Jelly Bean In Jelly Bean, notifications received their most important structural and functional update since the beginning of Android. Notifications can include actions that enable the user to immediately act on a notification from the notification drawer. Anatomy of a notification Base Layout At a minimum, all notifications consist of a base layout, including: the sending application's notification icon or the sender's photo a notification title and message a timestamp a secondary icon to identify the sending application when the senders image is shown for the main icon Base layout of a notification Expanded layouts Actions Avoid actions that are: Design guidelines Do

Les notifications iPhone et les certificats Jeudi, 20 octobre 2011 Nicolas Il n’est pas toujours aisé de travailler avec les notifications iPhone, c’est pourquoi les développeurs peuvent se simplifier la tâche en utilisant des programmes Open Source pour gérer la partie serveur. Si gérer les notifications push pour iPhone et iPad est assez simple, la partie certificat est plus obscure… Pour commencer avec les notifications, on peut utiliser un outil comme easyAPNS. Présentation de EasyAPNS EasyAPNS est un programme Open Source qui permet d’utiliser l’APNS (Apple Push Notification Service) sans se prendre la tête. Côté iPhone, easyAPNS vous propose aussi les instructions à mettre dans votre Application Delegate pour que les utilisateurs puisse s’enregistrer à votre service de notifications. Sans rentrer dans les détails, disons que EasyAPNS est plutôt bien fait et permet d’aller plus vite pour quelqu’un qui maîtrise déjà le développement iOS. La gestion des certificats Lien : easyAPNS. Articles similaires :

Apple Push Notification Services Tutorial: Part 2/2 Create a simple chat app with Apple Push Notification Services! Update 4/12/2013: Fully updated for iOS 6 (original post by Matthijs Hollemans, update by Ali Hafizji). This is the second part of a 2-part tutorial series on integrating Apple Push Notification Services (APNS) into an iPhone app. In the first part of the tutorial series, you learned how to enable your iPhone app to receive push notifications, and how to send a test push notification using a PHP script. In this second and final part of the tutorial series, you’ll learn how to make a simple app using APNS, and a simple PHP web service to power it! Note: This tutorial is on the long side, so make sure you set aside a nice chunk of time (and some munchies!) Getting Started: Introducing PushChat In this tutorial, you’re going to make a simple direct messaging app named PushChat that uses push notifications to deliver the messages. The first screen that a user sees is the Login screen. When the user presses the Start! The Server API

Be carefull, the name of the PushCat should correspond to the name of your application if you want to have notifiication working correctly by daphi Jan 22

Related: