Sometimes clients need to communicate with server, this communication can take place in three form that push notification is the latest and the best methods for this purpose.
With push notification users can receive notification from applications. This notification could be about new version of application, new product, news and etc.
Push notification often use in smart phones.
Keyword: Backend as a service (BaaS), mobile services, push notification
Sometimes you may receive notifications on your smart phone that inform you about availability of new version of applications or new products on their market or something like these. These messages sent from applications that you installed them before on your phones.
They usually are sent in order to inform user about special statuses and news. In additional, application owners can encourage users to use application again who have installed application before but they haven’t use it for a long time.
In second Chapter, we will discuss about advantage and disadvantage of push notifications in details and then we will describe methods which client and servers can communicate with each other by them, and finally we will tell Features and capabilities of mono.ir platform.
What is push notification?
Suppose you’re the owner of a mobile app and you want sent a message for all users or certain users who have installed your application, with push notification ability you can easily do this even your users aren’t using your app at that moment.
Advantage and disadvantage of push notification
If push notification system in an application be disabled, user may leave application and forget it. According to statistic 50% of users who their push notification system is active and receive notification via applications, after two month they are still use applications.
Studies show that users who receive notifications after 6 months after installing software, 2 to 3 times more eager to use that application compared with other users.
Sent notification to users, have a significant impact on their use of the software. Applications which sent notification to their users, 88% more than other application will be used. Also the time interval to return the user to the application, up to 55% reduced, But Text messages that are sent should be engaging and relevant to encourage users use application again, otherwise it is possible that user never use application again and even remove it from his/her phone for ever.
Methods of communicatin betwen client and server
Suppose we have a shop system that we want inform our user as soon as a product added to system. In this way, there is three method.
In this method, clients in order to be informed of the latest changes of the server should sent request to server in a specified time interval. For example every one or two minutes sent request to server and server also check the client’s current situation and respond to it that a new product is added to system or not. The disadvantage of this method is that may no product be added to database for hours and by sending repeated requests we have additional process in server or even sometimes it is possible that we want to increase or decrease post time interval of request but this method reduces the efficiency and speed of our server.
In this method, client contact a socket with server and whenever any changes occurs that client need to know about that then server should inform client. This connection is maintained until the client is connected to the Internet and there is no need to send repeated requests to the server and it is better than first method.
But the downside is that if the number of clients that have struck the socket increases, the server loose performance and speed of respond. Also the number of clients if be more than number of sockets, then one socket should release till new client connecting to server and be aware of the latest changes.
In this method, whenever a change occurs in the server and this change be relevant to the client then server should inform client about this.
Now let’s check this method for android smart phones.
In android you can use GCM (Google Cloud Messaging) API. GCM is a service that allow us to send data from server to client also receive information from client.
GCM support all states queuing messages and ensure that they arrived, this service is free and there is no limit on frequency of use.
Push notification platforms
There are lots of platforms that provide push notification service, www.mono.ir is the one of the best and most comprehensive platform in this field.
Push service in this site includes settings such as send date, expiration date, continuous send and gradual send. There are also filters that are as follows:
Send to specified tokenIDs
When a user install you application, will receive a unique tokenID. You can specify tokenIDs and then send.
Send to specified tags
By SDK and by APIs you can tag your users. When you tag your users in fact you are grouping them. Now you can send base on tags.
Send by geographic coordinate
Sometimes, target users are located in a specific region, for example, you want to notify users who live in specific area in these cases this filter can help you.
Send by circular area
For using this filter, your SDK should recognize the device’s geographical coordinates, you should specify longitude and latitude (one point) and radius
Note: should not last more than ten minutes from the geographical coordinates of the user.
Send by urban area
In this filter, you have a list of urban areas that you can choose some of them for sending. Here also should not last more than ten minutes from the geographical coordinates of the user.
Send by device specification and API
Device specification includes, builder factory, device model and etc.
API specification includes, version code and name of version and etc.
Send by ISP
In this filter, push notification will be sent to users who use one or more internet services. ISPs will detected by user IPs (devices). You can gain IPs which are corresponding to ISPs from user panel and then do sending.
Send by registration time
By this filter you can sent push notification to users who registration time of them is before or after a specific time.
Best way for Server and client communication is by sending push notifications. In this method, we can inform users about new products, news and etc. in another hand we can increase user engagement and by analysis of push notifications and user behavior we can improve user experiences.