i have a problem that i am using web services and want that for example i have implemented facebook in my application and want that all the notification that arise in my facebook will get notified in my android phone even if application is installed but not opened in phone. So, to implement this into my application i think i have to use cloud computing but how can i do this i dont know. Can anyone help me out of this problem?
Thanks
I don't know what kind of application you have already written, but you need the implement a backend that checks the Facebook notifications, which can (probably) be done using the Facebook API: http://developers.facebook.com/blog/post/291
To send the notifications to the phone, you can use push notifications. Since 2.2 this can be done with Cloud To Device Messaging:
http://android-developers.blogspot.com/2010/05/android-cloud-to-device-messaging.html
and
http://blog.boxedice.com/2010/10/07/android-push-notifications-tutorial/
Related
I am trying to implement a simple android app that has the ability to send device to device notification, like in almost any IM app exists.
In my app the implementation is even simpler, since there is only one user that receive notifications. All the other users can send them to him.
I am trying to find a solution for the last 10 days and so far I only found that it is hard do do it using Firebase Cloud Platform (since I need to implement my own server), and that it is maybe possible using oneSignal.
Have anyone done this before? Have anyone used oneSignal and can tell me if I can easily implement it without building another server?
Thanks!
I see that apps like facebook for example are getting push notifications in real time. When someone writes a message to me from a pc ill get the message to my android device as push notification just a second later even when my facebook app is not running.
Im wondering how it works because for my app i need a quite similar behaviour. There is also a messaging and an alert mechanism between server and client but i cant imagine how i could implement it so that i can get real time updates from the server to the client even when the app is not started.
Does someone know?
Yes, use Sync Adapter with GCM (Google Cloud Messaging) :
http://developer.android.com/training/sync-adapters/index.html
Read the tutorial i provided, you will at least know what to use.
And check this SO question, it has good answers (especially the accepted one) :
Sync data between Android App and webserver
I would like to develop a small application which can send notifications or communicate from one phone to another over the internet.
Could any please suggest me how can I start with this project?
Look for Google Cloud Messaging: http://developer.android.com/google/gcm/index.html
There's considerable setup. You need to activate GCM for your app in the developer panel, get yourself an API key, and depending on use case, maybe you'll need an XMPP server as well.
I am currently developing an app where users create posts that are stored on a server. When another user shows interest in a post by clicking a button, I want to notify the author of the post using push notifications. I have already set up the data storage using cloud endpoints with Google App Engine. Is there anyway I can use these endpoints to implement push notifications? If not is there another easy way to implement push notifications given my current setup? I have already read about Google Cloud Messaging on the developers page but was somewhat confused. I have kept track of the registration id's but I don't really know where to go from there. Thanks in advance.
You can use the HTTP interface to the GCM servers as described in this
Android developers page.
The easiest way to do it is by downloading the Google Cloud Messaging for Android Library using the Android SDK Manager, which will give you a jar that handles all the complexity of setting up the requests and responses to GCM.
Towards the bottom of that page, there is a sample Java application for push notifications on App Engine which you can use to get familiar with sending push notifications and then adapt to your needs.
I'm working on my first Django app that already uses Pusher's service for some parts in my site - it works great.
I would like to add a notification app for Android, which will alert a registered user about a new activity regarding to that specific user.
I would like to know:
1) What is the best way to implement that? Should I use Pusher for this as well or should I use Google's push services (or maybe another service?)? What will be the easiest?
2) How will the Android app user get authenticated to Django? How will the app 'know' if the user is logged in using the device's browser at the same time and no notifications should be sent?
I'm new to Android. If someone could answer / describe the general architecture / lead to a proper documentation it would be wonderful.
You can use Android's Cloud to Device Messaging (C2DM) - https://developers.google.com/android/c2dm/.
For 3rd-party, there's Urban Airship - http://urbanairship.com/.
If you use C2DM, you'll get a token specific to a user. You use that token to send a message to the user.
You need to figure out if the user is online (browsing) so you won't need to send notification. You can check out this app: https://bitbucket.org/zalew/django-online-status/wiki/Home.