I am developing a small chat application using node.js for iOS and Android, Now my question is that one user created a account and logged-in using this application from iOS or Android, then the user deleted this application without log-out. How the server knows this device has deleted the application without log-out?. Since, while user again installing this application, the push notification is still arriving without the user log-in.
Apple has a feedback service to give you information about failed remote notifications. Basically you listen the messages from feedback.push.apple.com and you flag the devices returned from feedback service. So no further push notifications will be delivered to that device. When user installs your app again you can remove the flag and start delivering the notifications.
For the android part check this question; Is there an Android GCM equivalent to the iOS Push Notification Feedback Service?
Related
I was implementing mobile game with my team. And we have argument that push system may not reliable enough. So we should find third party chat message service or open our own chat server instead of relying on silent push notification
But some still belief that using silent push to chat is the standard nowaday and more reliable than implement our own server
The requirement is just to send chat message to active user's chatbox while the app is open
Are there any concern to consider each method?
How about ios and android system setting?
Will our app receive surely recieve silent push if our app still open?
Are there any chat service that software industry used as standard
Try having a look at Firebase it has real time database and an FCM for your chat / push notification needs.
Is it possible to create an app that can send notification to the user who does not have the same app installed on his device.
I have come acrossed 'Push Notification' service via GCM and FCM but it requires the app being installed on both the devices to communicate or send notification.
(P.S- No suggestion for web application to user mobile service)
You can use other means of communication like SMS or email.
No. Notifications even though coming from Android Google servers are part of the app environment. So you cannot send an app notification to non app users. If that was the case imagine getting app notifications from Amazon and whatnot.
But you can use some other means like mail, sending links of your app via mail/sending invites via mail or SMS.
I need some advice on sending pus notifications to my android app built in android studio. I have done a lot of research on the subject but it seems that all the examples, tutorials etc sends one notification to multiple users (similar to a news app that sends a notification about a new article to all of its readers) using GCM, pushbots etc.
What I am trying to achieve is to send a specific account notification to a specific user (similar to a facebook push notification when someone writes on your wall or the bank sending a push notification when a transaction occurs on your account).
The backend data will be on SQL server and as data comes in to the server, notifications needs to be sent to the associated user.
I am not sure if the processing of this happens on the server and then just pushes the notification to the users android device or if there is a service running on the android device which runs in the background and periodically checks for changes in the data and then gives a notification when it detects a change in the data based on certain conditions (more like a pull notification if you will as the android device actually pulls from the server).
Any advice as to where I can start and do more research regarding this will be much appreciated.
I have a chat web site and I builded an app of this site.Now my site and app using socket.io(websocket).In current version of my app when user closes the app user can't recevie any message(normally).I decided add GCM support to my app for push notifications.But I have questions about this.
My scenario:
User 1 logged into system from pc then he connected to socket.io
server and he is waiting messages.
User 2 logged into system from android app then he connected to
socket.io server.
Now they are chatting with each other.
But 10 minutes later user 2 closed the app and now he won't receive messages.
I am asking what should I do for send push notifications to user 2 ?
I am not asking GCM implemention,I know the GCM implemention.I know the user 2 device id and how can I send push notification to this user.
My problem is:I need to work with socket.io and GCM.How can I detect "okay,user 2 closed the app when user 1 sends a message to user 2 take this message and send to gcm server"
Is this a good approach ? or what do you suggest for like this chat system ? Example you can give an example from Whatsapp how can they handle this problem ? I think they are using Gcm for only push notifications,in app they are using Erlang.
It's not socket.io that connects to the GCM.
You'll need a module for Node.js that enables the connection from the Node.js (running the socket.io) to the GCM. A module like this one gcm module, there are also examples that can get you started.
So, in your case, you'd want to call socket.emit() if the user is online (you should have this already), otherwise the user is offline and you want to push the message by calling gcm.send().
To detect if the user is offline you'd need the to add the user to an offline list when the socket.on('disconnect',function(){//add user to offline list}) handler is called.
I run Push Notification Sample code on Worklight server and its working.
Now i want to send notification from one device to another device so what are the required changes in the adapter?
The adapter XML:
<displayName>PushAdapter</displayName>
<description>PushAdapter</description>
<connectivity>
<connectionPolicy xsi:type="http:HTTPConnectionPolicyType">
<protocol>http</protocol>
<domain>https://android.apis.google.com</domain>
<port>8080</port>
</connectionPolicy>
<loadConstraints maxConcurrentConnectionsPerNode="2"/>
</connectivity>
Should i change domain and port and i have to upload the app first on google play so that i can able to recive or send notifications. And should i create a key for android device on GCM
Push notifications in Worklight (and I believe at large as well) are not sent from one device to another per-se; consider it this way:
You have two applications:
A managing app
A receiving app
User A is running the managing app - this application is able to send a request to the server, which tells it to send a notification to some other user(s).
User B is running the receiving app - this application is able to receive notifications.
All of this is not related at all to the Google Play store.
Yes, both apps will require a GCM senderId and Key values in order to have any Push Notification capabilities.
As for implementing all of this... there is no sample to do this, but you already have part of the solution (the sample app is able to receive notifications). What you need to do now is have the managing application be able to retrieve a list of / specific username(s), and create a procedure that will invoke a function to send the notification based on the username(s) you have retrieved.