I have android app which is basically mobile server communication app ,when I send data through this app it gets updated on on all the devices which have this application, Like I send Person "name", "phone no" and some description from this application then It will store onto my online database and will be shown on the this app in the form of listview,NoW I want whenever I put or send data through this app,A push notification or popup notification will be appear on the devices which have this application, I am trying to implement GCM Google cloud messaging AND follow this Tutorial:
But I didnot Know how can I Integrate this with my app, would you please help me and suggest me some blog or tutorial regarding my current senerio.
You are using old concept which has been deprecated.Now it is recommended to implement google cloud messaging(GCM) using google play services library. See this tutorial. Hope this helps
http://techlovejump.in/2013/11/android-push-notification-using-google-cloud-messaging-gcm-php-google-play-service-library/
Related
I have a very simple app made with android studio, an web viewer for my forum app. I integrated push notfications to be able to send notifications like "Hi! There are some new subjects on our forum, check it out" and make people open the app. I followed the exact documentation from here https://pushbots.com/developer/docs/android-sdk-integration
I am now able to send notifications to all the users that have my application. My problem is that they dont see the notification unless they have the application opened. For example, if I test it and send a push notification, but i dont have the app opened, i wont receive anything. I want to be able to send notifications even if they have the app closed, that's my point, i want to make them open the app to see the new questions on my forum
What should i do?
Make use of what was formerly known as Google Cloud Messaging and is now known as Firebase Cloud Messaging. Can push messages to user phone even when app is closed
I have developed web based application using yii2 framework and MySQL database and my plan is i want to make an android app that can receive notification from my web based application real time and can pull data from it too. but i'm not sure how can make it works and using which methods i can implement this. can you give me some advise and source to learn it?
thanks
You have to follow below steps to implement push notification
1) You have to register on google developer consol
https://accounts.google.com/ServiceLogin?service=cloudconsole&osid=1&passive=true&continue=https://console.developers.google.com/dcredirect/
2)enable the GCM api from api list that available in api lists further instruction you will get on site when you create account.
3)Generate key for GCM web/ android.
4) Use this GCM key from android app and write the the GCM notification receiver
program in android app and using notification manager show on notification bar.
5)Using server side key you can write the program to push notification from web site.
I created a webview on Android to display my website in the app. Now i want to know if it's possible to create notifications whenever i update the site content?
you have to use cloud messaging service .. you have to implement it your server side in such a way that it would give a push to device whenever required
there are multiple option available most used are :-
Google Cloud Messaging: http://developer.android.com/google/gcm/index.html
Parse: https://www.parse.com/
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 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/