Push notification integration in meteor - android

I am having two applications one is for admin and another is for users.I want to implement push notification in it so that when ever user rate the offer in application then Admin can get notification of it with user phone-number and rating count.I found one good example of push notification but unable to implement in my application as its storing data in local mongoDb not in main so that my other application do not get the stored value in order to hit push notification.I am stuck at this point. can any one provide me a simple approach/process to achieve my goal.I am really new to meteor and have not much knowledge about it.
To implement Push-Notification I am taking reference of :-
1) https://github.com/richsilv/meteor-cordova-notifications/
2) https://github.com/richsilv/cordova-notifications-demo
Any help will be greatly appreciated.
Thanks.

I highly recommend using Parse:
https://parse.com/docs
They make push notifications super easy, and for an affordable price.

Related

What is the workflow to get live data updates from NodeJS/MongoDB API?

I need to fetch live data in Android App from a NodeJS/MongoDB API. For exemple, I have a list of tasks on the Android screen (fetched from the API). Then one of this documents (tasks) have changed in the MongoDB, the Android screen needs to update the data on the screen once this data have been changed on the server.
Can anyone help with some workflow? I am not looking for code. Ideias (Arquitecture/Libs) only.
Thanks in advance!
You can do this in two way.
Use silent push notification.
When data change in server then server send push notification
to app.
App receive notification Then app get call API to update Data.
Your app sends a request(s) to server periodically (After some
interval of time)
Reference link for same: link1, link2

Sending simple data with notification to another app

I'm working on two seperate apps that need at some point to exchange messages, both apps share a MYSQL database, I want the first app to be able to send some data to one of the other app's users (specified by his id, email or phone number ), and this last to be able to reply to the request by accepting or rejecting with a button click.
Now, I don't know what is the best:
Something similar to chat ?Is it possible to extract the necessary data from the rest of the chat message ?
A broadcast.
A push notification.
Or something else ?
Help me please I'm a total newbie, I would use an expert opinion.
What you are describing is basically every other Chat App that exists.
I can only suggest you to read this code example to get an idea how to approach this:
Android Chat Example code

What is the best way to change website contents without the user giving any trigger

For example, whenever someone "likes" your post in Facebook, you get a notification. You don't have to refresh your page to get the notification. Or whenever someone sends you a message in Whatsapp you immediately get it.
How do they implement that? Does it use Ajax to listen for database changes every second or so?
I want to build an Android application which should do something whenever the value of a remote database changes. Should I use a service to check for the database value every second and compare it to the previous value? Is this the best way to do it?
You could either setup a gcm service or use the native android service to hit your database at a fixed interval of time . GCM would be more efficient and would be recommended , if your app is an extensive real time sort of an app like a messenger or something
You should look into Google Cloud Messaging. But you will need a server to implement it.
https://developers.google.com/cloud-messaging/

Alert Notifications from Asp.net to Android

HOW I TRIED:
I have a scenario in which teacher would upload an assignment alert on the server with following thing:
Title
Description
Downloadable Links
created date
Deadline
and the student would get these detail on an Android. I have done this work (the communication between server and client side using WCF webservices). All the data is showing in the ListView on client Side which are uploaded on the server.
WHAT I WANT
A push notification of that alerts on a particular dates e.g (if the teacher uploads an alert on 14 April then the user on the client side would get a push notification on the same date).
DealLine push notification of that alert on a particular dates e.g (the user would get a dealline notification of that assignment on a particular deal line)
I have studied about the GCM. is the best way to send a push notification on an android device. But I don;t think that the GCM is the appropriate solution of my problem? or I just simply go for the Android Notifications?
Does anyone suggest me the how can I do this work? Any appropriate solution for this, or I would have to use any third party library for this work? any tutorial that similar with this problem? THanks in Advance.

Push Notification from server

I have developed an app in which i am collecting data from server through parsing. So , i want to add push notification in my app whenever the service adds new data. I have searched the web bt cldn't fnd smthn useful.
The best way is to either get a webserver with cronjob this will send information directly to your mobile ... or, to make an backgroundservice in your application.
It's not a simple thing to do, in the upcomming few days I'll be posting a tutorial on http://p-xr.com wich explains it in detail.

Categories

Resources