Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,802,957 Members 38,635 Now Online
XDA Developers Android and Mobile Development Forum

Notification When The User Connects On The Internet

Tip us?
 
clonedaccnt
Old
#1  
Member - OP
Thanks Meter 0
Posts: 33
Join Date: Jun 2014
Default Notification When The User Connects On The Internet

I have a website that has MySQL as a database and I have this item on the database that can change the status to available or unavailable, what I want is to notify all the users that subscribe on that item when the status of the item change to available. I want the user of my application to receive a notification when he/she connect on the internet. Thank you and have a good day!
 
Jonny
Old
#2  
Jonny's Avatar
Forum Moderator
Thanks Meter 7,996
Posts: 7,973
Join Date: Jul 2011
Location: Cheshire

 
DONATE TO ME
Quote:
Originally Posted by clonedaccnt View Post
I have a website that has MySQL as a database and I have this item on the database that can change the status to available or unavailable, what I want is to notify all the users that subscribe on that item when the status of the item change to available. I want the user of my application to receive a notification when he/she connect on the internet. Thank you and have a good day!
Take a look at the Google Cloud Messaging service on Google's developer website (including the samples). Easiest way to do this would probably be when you update that item to available, run an SQL query that searches for users subscribed to that item and send them a GCM notification via multicast message.

Sent from my HTC One using Tapatalk
The Following User Says Thank You to Jonny For This Useful Post: [ Click to Expand ]
 
clonedaccnt
Old
#3  
Member - OP
Thanks Meter 0
Posts: 33
Join Date: Jun 2014
Thanks Jonny!
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes