Here I am developing an android app which deals with housing complex.
In this app their are 2 kinds of users:
Builder/Complex Owner
Flat Owner.
Now here the Builder/Complex Owner can send push notification to flat owners.
How can I achieve that? Please help.
Here I cannot use G.C.M as G.C.M. is used for server side push messaging.
Not sure if there is any other way. What you could do is to let the app send a push notification request to the server, then the server would issue the push notification through G.C.M. If you don't have a server available you could do it through text messages but be sure to have a good text messaging plan. You could possibly also use an existing service (for example Facebook) and send the messages through their API.
EDIT:
To do it via text messages: SMS receive with no notification. Again, make sure that you have a good text messaging plan if doing this. Sending an SMS to ten different people will count as ten different SMS messages.. If you have a lot of users it would probably be cheaper to get hold of an SMS server. But then again, you should just use G.C.M.
It is possible to send device to device push notification using gcm.See this link.
Related
I have a cross platform application and i want to send notification to sign in users about their messages.
Now I confused about uses of push, local notifications.
What I think of Push notifications is that it is for sending Announcements to users which is not specifically related to their account only.
Can anyone help me out with what should I use? I already used Local notifications in one of my applications with such requirement.
It mainly depends on; is the data coming from local or remote?
You cannot control when your users open the app, and only when they open the app (with a few exceptions) you are able to fetch data. Then with that data you would be able to schedule a local notification. But in most cases that doesn't make much sense, because they have already loaded and probably seen the data. It only makes sense when you schedule an alarm clock for instance.
When you want the data to come from remote, like when they receive a message, you will have to use push notifications. The user is then alerted that new data is available without having to go look for it themselves. It is pushed to them.
However, for push notifications you will need infrastructure which you did not when using local notifications. You will need a server to handle the push notifications (Azure has some awesome functionalities for this) and some trigger to send push notifications. This can be an insert on a database, or a scheduled task. Also, the user has to enable push notifications and your app has to register itself to be able to receive them. It can be a pain to implement it the first time.
It depends on for what reason you're sending the notification.
A local notification is sent locally on the device, so it doesn't need an internet connection. Examples could be:
Send a birthday message when the user has birthday
In a harvesting game, send a local notification when the store is full
A Push Notification is sent from a server and it requires internet on your device to receive it. Examples:
You get a message in a chat while the app is not open (if I understand your question right, this is your case)
In a game: realtime events which are triggered by a server
So in your case, if guess you want to notify the user about new messages if he does not have the app opened. This notification comes from a server and is a Push Notification.
As you describe you want to send notification about sign in users about their messages. so it would be the real time notification about when there is message for user you need to notify the user. so apple having PushNotification is the best approach you need to apply for this. using that you can directly notify user about the new messages.
Why LocalNotification is not useful in this scenario?
I think messaging is the realtime stuff. local notification is not for that. its for only managing local notify stuff. like reminder OR to do added task.. and many more
I've ran across a topic that discusses how you could create an app that allows you to send an sms to the application and receive them from it. My question is simply the following:
Can someone send an sms to that app regardless of where they live or are there any limitations in terms of service provider etc?
Chances are you are going to have to use Google Cloud Messaging to accomplish this, seen here
It sounds like you might be after push notifications rather than an SMS. Amazon's Simple Notification Service (SNS) allows you to send push notifications as wells as SMSs though and has an Android SDK.
In either scenario you'd be able to send SMSs or push notifications to any device regardless of its location.
Hi i'm developing a news android app, and i want to send a push notification to all the registered devices, but apparently Google said in their tutorials that you can send a push notification to up to 1000 users. but this is very frustrating and i know apps that send push notifications to all their users.
I'm very confused about this and i have been looking for a solution for three days now, is there a clear way to send a push notification to all app-registered devices or not ?
Thanks in advance.
If you are planning on sending out push notifications in large quantities and to large user groups you should consider using a back-end service to simplify your life. Parse is one option. You can send push notifications to all of your users or even send out custom notifications based on certain conditions. You can find more information here:
https://parse.com/tutorials/android-push-notifications
There is no limit in sending the notification to the number of user.
GCM allows us to attach a message to 1000 users at a time. This doesn't mean there is a limit to the gcm notification
Refer this
http://developer.android.com/training/cloudsync/gcm.html#multicast
Just wanted to check if it is possible to send push notification from one andriod app to a different andriod app considering both the apps has different product id and browser keys. If its not possible then what is the work around other than picking up the message from SMS inbox and displaying it ? The purpose is to have a merchant facing app and a different consumer facing app for intraction. So if a merchant push messages it should come as notification in the consumer app.
Yes, it is possible. You need to obtain registration ID from the application you want to send the push message to and to know the API key. Just like when you want to send push messages from a server.
However, if there is a server involved, it is better to use the server to send the messages instead. It won't need to deal with unstable network connection.
I'm just beginning to learn about REST and push notifications and am looking to see if I'm correct in what I'm thinking.
1.) -
A push notification is sent when the server changes state and has the advantage over constantly pinging the database for the most updated data, when it has new data it just sends it out to whomever is listening.
2.) -
You have to use REST to have a push notification. This I'm not really too sure about, is it possible to send push notifications without using REST?
There are many different services to send push notifications. IBM Bluemix www.ibm.com/bluemix, Facebook www.parse.com and a few others that make it easier to send push notifications without using REST. Good luck