I am creating an application for Android and iPhone. This application should receive notifications of new messages in the user's mailboxes. Being a complete noob in a dev application, I was wondering if any of you can suggest a better way to implement what I need here.
I read more on Android than iPhone, so my understanding of the latter may be desirable. Based on what I read and understood, I believe that I will need to start the service when my application starts for the first time (or instruct the device to start the service every time the device starts or something else). This service will then interact with the server to receive notifications and display them. By clicking on the notification, you will launch the application.
My parameters
Depending on the option that I choose, it changes the implementation on the client side, as well as the changes on the server side.
What do you guys recommend? Is there any other way to do what I need?
Any help is greatly appreciated.
Update:
Build jbat100 answer. The fact that Apple does not allow me to write my own server to communicate directly with my notification application means that APNS must be used. Thus, option 3 is completely absent. This means that we remain either with Urban Airship, or are directly connected to APNS and C2DM. Based on my research, the efforts associated with both cases are comparable, so it makes no sense to post an additional 4-5K / mo to support notification. Therefore, I plan to implement option 1. If any of you think differently, leave comments below.
Thanks.
source share