I have a news website and i'm developing an android app that gets the news articles from a url as JSON and everything is working well. Now i want to implement push notifications in the android app, so whenever a new article is published a notification with the article's title appears on the android device screen. (like facebook).
I made some research and i found that i have to use Google Cloud Messaging (GCM) but it's not that easy to implement, is there any easy-to-follow tutorial about that ?
Parse is a very good solution, it is very easy to implement and you get unlimited number of push with the free service up to 1 million users (last time i checked)
read here about it, should be pretty straight forward:
https://developer.android.com/google/gcm/client.html
also you can follow this:
http://www.youtube.com/watch?v=rmzv716SYkQ
and send specific errors you encounter during the process.
Related
I know this seems like a basic question, but I can't find a clear answer to it. I want to develop an Android app with Xamarin to receive push notifications (new messages) from a Gmail account. I know the native Gmail app already does this, but for a few reasons I need to implement this funcionality myself. I searched about GCM, FCM, but I haven't found a single guide or example on how to do this. Please help!
I think the challenging bit here is the Gmail part.
For your scenario to work:
Gmail will need to forward its changes to a server-side application that you control
This server-side application will need to create a push notification by sending it to GCM/FCM's web services
From here you will need to implement push notifications normally in a Xamarin.Android app
I don't think you are going to find a prebuilt/off-shelf solution that achieves this.
This is a pretty tall order to implement yourself, but it seems to be quite possible. I will walk through what I would do to make this work:
Implement an Azure Function to act as a webhook for Gmail. Docs for Gmail here. I don't know if there is an example for this part.
Use Azure Notification Hubs to send push notifications. Your webhook will forward notifications to the hub. I have a sample here of sending from an Azure function.
Integrate the Azure Notification Hub SDK into your Xamarin.Android app
Like I said, this is quite a bit of work. I'm not sure if you have Windows Azure or Xamarin experience, but I think this is the easiest path forward for a new project using C#.
I have a book here (make sure you get 3rd edition) that covers push notifications and Azure functions in Xamarin apps. The sample code for the book is on Github if you want a free resource.
Take a look at Zappier, it integrates well with OneSignal which sends notification on top of Firebase. setup is easier than you can imagine.
I wanted to achieve a quite similar application to what you wanted to achieve. In my case, I wanted to develop a xamarin app that fetches a specific user's tweet and pop a notification to android client automatically.
Zappier provided easy integration between twitter and onesignal.
Onesignal automated the messaging.
Take a look at here for pre provided integrations:
https://documentation.onesignal.com/docs/zapier
Hi we like to build from scratch an application that has the following purpose and function.
Situation:
A restaurant chain owner has multiple outlet, Food Menu is currently displayed on Android Tablet.
Problem:
Right now the update is done manually on each tablet, pricing and pictures of food.
Improvement:
A Single Table/Computer to push information, data, pictures to multiple android tablet at various restaurant.
How can we build something like that.
Looking forward to the experts here.
Sincerely thank you
Push Notification is the answer. You can implement it in multiple way; for example Parse.
The Parse library provides push notifications by using Google Cloud Messaging (GCM).
Connect your app to Parse. Before getting started, you will need to set up and connect your app to Parse. ...
Send a Test Push Notification. At this point, you're ready to send push notifications. ...
Customizing Notifications.
Furthermore, you can follow these links
http://www.tutorialspoint.com/android/android_push_notification.htm
http://code.tutsplus.com/tutorials/how-to-get-started-with-push-notifications-on-android--cms-25870
for parse https://parse.com/tutorials/android-push-notifications
I'm working on an app that will allow authors to send push notifications to readers on their mobile devices. I've already created a backend in Yii2 (php framework) that gets data from an author.
However, now that I'm working on the app (using ionic.io), I seem to have encountered a problem. Here are the requirements that seem to be conflicting:
I'd like to send push notifications to all readers that are subscribed to an author whenever that author inputs data into my backend.
These push notifications should be scheduled by the author.
The author should have access to analytics on their books on my backend.
The backend should have a count of how many readers are subscribed to each author (for billing purposes)
I've looked into things like parse, but it doesn't seem to provide me with any method of solving requirements 3 or 4. I've also looked into ionics push notification system but I can't seem to find enough on it to understand how this would all be possible.
Being that this is a reader centered app, I'm also going to need support for Kindle Fire.
Can anyone point me in the right direction? Even if I have to change from developing in ionic to another language I'm open to suggestions from the more experienced devs.
EDIT 1: I've already developed functionality for parts 3 and 4 in my backend, however I'm mostly unsure as to how I can populate it and keep it up to date with what's happening on parse's side (should I choose to go that route). Currently, it can only populate itself from my backend testing methods.
I have asked this question before but no answer. I successfully integrated Pushwoosh into my android application and their service has been wonderful, but now I want to make it automated because in one of the section in my app, there is a blog that is constantly updated using a Json Webservice. What I want to achieve is this, I want a push notification sent to users on the app, when there is an update from the Json web-service. Is there an online tutorial on this and how to achieve this, I would prefer if its very explanatory. I have searched online for a while now and i have been unable to come up with anything meaningful.
I learnt from Pushwoosh pricing site that we need to pay minimum 39Euros for subscription and only then we get access for RemoteAPI with which we can push data from our server. This facility is not available for free version. In case you have implemented this, kindly share some steps for the same
I am a newbie in android. I have developed few applications, but all are plain and simple, just used the built in features of android.
I was asked about push notifications, in one of my interviews and I decided to have a look at what Push Notifications are. I understand the concept of Push Notifications(I think), but whenever I read the term "Server", it's freaking me out.
I understand all the client side coding, but I don't get how to implement the server side coding. I have seen some people use XMPP, MQTT, etc., What are those? Here is my scenario and what I want to know..
Scenario ::: Let's say I have a website, with a table (the values are retrieved from database), where I update a few columns every day. I want these updates to be reflected in my android application. So, as I have read, push notifications can tell the application that there are updates available. Good. I am fine till here..
When the application gets the notification, should my application, contact the website and get the latest information? or will the updated information sent through Push Notification? I guess, my application would be contacting the website and get the information. Now, how do I get the data from the website? Should I get the source of the page and do some kind of parsing or something?
I will be asking more questions, as the experts clear my questions...
Sorry, if my questions are too naive, but this is the only place that can help me...
Push Notifications means Google Cloud Messaging for Android (GCM) is a service that allows you to send data from your server to your users' Android-powered device.
You can refer to this documentation
Google Cloud Messaging for Android
GCM: Getting Started
And there is also Demo App Tutorial given
in your case you need to create HTTP web service for getting data from the server.so when you get notification about update on server side.you just need to call this web service and get the data you need to update