What is the best approach for this project? - android

I'm planning to build an app for iOS and Android where the user has an account and can add friends. He can also post something, just like on facebook and all of his friends get a push notification and can react to it.
My question is: Which technologies do I need to use to accomplish this? A webservice with a database in the background? Can I do this with XAMPP?
Before going native, I wanna try out Appcelerator Titanium, any tips you can give me?
Thanks.

The simple way is "webservice with a database in the background" & your middleware should send the notification to platform server which will notify to individual devices for push notification.

Related

how to send remote notification in nativescript

We have a requirement to send notification to the Mobile App Users on periodic basis. (Say Every day morning 6 AM). We are using Nativescript to develop the Mobile Application.
Can someone help to confirm if this can be achieved? if yes, Any sample code/plugin/directions will be highly appreciated.
Thanks!!
If you want to do it from within your app, this might help (not using myself)
https://github.com/EddyVerbruggen/nativescript-local-notifications
Another solution could be to generate scheduled notifications from your server and push them to your app via FCM. In which case you could use this plugin https://github.com/NativeScript/push-plugin (I'm using this)
Yes, possible. Checkout the nativescript-plugin-firebase or nativescript-push. You will have all the details documented in the ReadMe along with sample code.
You might setup a job in your server which would fetch all the list of users and their device tokens you want to send push notification to, pass it on to FCM.

How to receive Gmail notifications with Xamarin

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

Understanding PhoneGaps automatic PushNotifications

I am learning with this tutorial to send notifications: http://devgirl.org/2013/07/17/tutorial-implement-push-notifications-in-your-phonegap-application/.
It seems really easy but very limited.. So this way I can only send a notification manually with Node. But what if my app has to send a notification everytime something is updated in my database? Is that possible? Is it possible to send the notification if the user is not using the App at the moment?
All help appreciated,
Yes, it's possible. The phonegap-plugin-push could help for your purpose.

Phonegap and Parse.com Push Notifications android

I am creating an app using html,jquery,php and phone gap and i want to send push notification using parse.I don't know how to do that.
I have seen an example in SO But it is for ios. I need it for android. Will this work for android.
Please help me. Thank You.
Have a look at this answer I've just posted, I've just got the Android Parse PNs working:
How do I get Parse.com Push Notifications working in a Cordova/Phonegap Android app?
That will help you get the app to recieve push notifications. To trigger them from PHP you'll need to use the REST API or a Third Party PHP library:
https://parse.com/docs/rest
https://github.com/apotropaic/parse.com-php-library

push notification to web-client from server in phonegap

I have two different kinds of clients in my phonegap application. When a client request some data to server, the other client should be sent some data and notification. What is the best way to implement this? My application should run both on android and ios. Please help
Maybe you are looking for something like this. Maybe this helps
https://github.com/phonegap-build/PushPlugin
http://devgirl.org/2013/07/17/tutorial-implement-push-notifications-in-your-phonegap-application/
and if you want something with php then take a look at this
http://mobile.dzone.com/articles/sending-android-push

Categories

Resources