Sunday, March 23, 2014

A Developer's Dilemma: using Push Notifications

Push notification permits Associate in Nursing App to give notice its users of recent messages or events with no need to truly open it, just like however a text message can create a sound and crop up on the phone's screen. this can be one in every of the nice ways that for Apps to move with users within the background. additionally to pushing messages to the screen, It permits Apps to show variety or a 'badge' on the App's icon e.g. the mail icon can show the quantity 5 once there area unit 5 uninformed messages.


Here may be a good use case of this: let's suppose you're taking part in chess together with your friend on-line. whereas you're within the chess App, your friend's moves can seem on the board directly and once you switch to a different App- e.g. to browse email whereas your friend decides wherever to move-the App desires the way to give notice you once your friend makes a move.

Here area unit some pointers which might assist you whereas operating with push notifications:

It is necessary for Associate in Nursing application to register within the server (e.g. APNS for iOS, GCM server for automaton, MPNS for Windows then on) so as to receive the notifications. Then it will pass to its supplier a tool token it gets from the software package.

These will be a message, Associate in Nursing at hand calendar event, or new information on a distant server. they will show Associate in Nursing alert message or they will badge the applying icon. they will conjointly play a sound once the alert or badge variety is shown. choose the kind consistent with your demand.

Avoid the usage of multiple notifications for similar actions (e.g. in an exceedingly chat area application, the user would possibly wish the notification only if the spoken language is initiated. it's not necessary to produce the notification each time a message is received).

Be careful with the excessive usage of automaton push notifications as continual can lead to spamming which could lead to the user unsubscribing from your application

Always select a service supplier UN agency provides cross platform support for your application's notifications. this may cut back the hassle in characteristic the kind of devices App users area unit mistreatment e.g. if your app is running on 2 completely different platforms like automaton and windows, then the supplier can offer you the way to send the messages to each the platforms in one api decision
A few limitations that you ought to confine mind

Some service suppliers, devices don't seem to be capable to handle multiple push notifications inside one App. during this event plenty of push messages sent by App are queued, and solely the recent notification are au courant the screen.

Delivery of push notifications isn't secured. Push Notification Service includes a feedback service that the server (APNs) frequently updates with a per-application list of devices that there have been failed-delivery tries. therefore mistreatment push notification for time period applications isn't possible.
-------------------------------

-
Mr. Abhishek
www.vic2all4u.blogspot.com
My facebook link : www.facebook.com/abhi612
My Twitter link : www.twitter.com/vic2dataentry
My Google+ profile link:  
plus.google.com/114265209043719204296
My Youtube videos : www.youtube.com/user/vic2dataentry 
Subscribe to recieve my latest post by email click here 


No comments:

Post a Comment