Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sending notifications to a android phone via a web service

I have an android application which collect accelerometer and microphone data. If those data satisfy a predefined condition, they should sends to a web service. Then all other android phones which a connected with this web service(phones which have the same application) can be received a notification automatically. But I have no idea about this notification sending part. What is the way to send notification to connected phones automatically. Thank you....!

like image 420
Randi Avatar asked Feb 21 '23 23:02

Randi


2 Answers

you can use push technology. You are in luck, there is C2DM(cloud to device Messaging) for android. Start from this blog

http://android-developers.blogspot.com/2010/05/android-cloud-to-device-messaging.html

like image 199
Win Myo Htet Avatar answered Mar 06 '23 09:03

Win Myo Htet


You could go through this tutorial too,its a nice and neat one

http://www.vogella.de/articles/AndroidCloudToDeviceMessaging/article.html

like image 21
John Avatar answered Mar 06 '23 07:03

John