I have my Titanium Application for Android and now I want to implement Push Notification for Android in Titanium. I have my back-end service which get all notifications for me but I don't have knowledge about Google Cloud Messaging and what are the relation between them (i.e Push Notification and GCM). Please Provide me guidelines and way how to do it. Thanks in Advance!
Doing push notifications with Titanium is probably going to require a 3rd party service, most, if not all, are subscription fee based.
I've been looking to this myself for some planned future projects using either Titanium or Apache Cordova(Phone Gap).
The most popular recommendation I've been getting is Urban Airship It looks like they have some pretty nice features, but I haven't looked much further into it than that.
For Titanium, you can use this module (Open Source): https://github.com/liccowee/Google-Cloud-Messaging--Titanium-.
In examples, you see how to implement it in your app.
Related
I am new to react native and I have built an app for magazines and catalogs which are loaded from my online hosting server (GoDaddy). I want to implement push notification in my app from that server on both android and IOS. Where should I begin and what are my options?
You can use services such as onesignal & fcm. Here i am sharing you some libaries for push notification
https://github.com/geektimecoil/react-native-onesignal (one signal)
You can use the below library for fcm, if you need any other firebase services such as authentication, dynamic links etc.. go for this
https://github.com/invertase/react-native-firebase (fcm)
If you just need only push notification services, you can use
https://github.com/evollu/react-native-fcm
I personally suggest you the last one, because i am using this in all of my apps and enjoying better experience with it..
note : all the above has support for both android and ios
this article will be helpfull for integration
https://medium.com/differential/how-to-setup-push-notifications-in-react-native-ios-android-30ea0131355e
Edited in 2020, last repo suggested personally is no longer maintained now. It's deprecated, as said on their repository. For future viewers, please prefer the second last package, i.e. react-native-firebase (fcm)
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
I was searching for an API like EasyAPNS for Android. EasyAPNS allows to add PUSH Notifications in iOS with minimum codeing required and all tested stuff to reduce development time. I was interested to find similar thing for Android too so I may not need to write the whole backend and service stuff for Android. Have you come across any API so far?
I know how notifications in Android works and how can a service be used to generate notifications. The service in Android must listen for remote requests and as they may arrive, it will add to the notification tray.
Well, Minimoesfuerzo did a plugin that integrates UrbanAirship and PhoneGap Android. That may provide you the functionality you need:
http://minimoesfuerzo.org/2011/06/3/urban-airship-integration-android-phonegap-app/
Does anyone know of a way to implement push notifications using appcelerator for an android device, without using the UrbanAirship module?
Android "push notifications" are called Cloud to Device Messaging (C2DM).
This blogpost is straight from the development team member.
Update:
To use C2DM from Titanium, try the titanium-c2dm module.
Pusher (who I work for) have an Appcelerator Titanium module for Android and iPhone. You should contact support#pusher.com if you are interested.
Note: Clearly this doesn't use UrbanAirship, but I'm not 100% sure if you actually mean you want to remove all private 3rd party dependencies
Using Appcelerator Cloud Service(ACS) you can implement the Push Notification.
It is the simplest and reliable one. Follow the below tutorial for ACS Push Notification implementation on Android
http://www.titaniumtutorial.com/2012/06/appcelerator-cloud-push-notification-in.html
Hope it helps someone
Do we have any equivalent service of Push Notification (in iPhone) for Android applications?
The way to go is using C2dM the official google push api
http://code.google.com/android/c2dm/index.html
instead of building it yourself.
To support older phones and/or if you don't really need real time notification, you can use polling. Check out the BuzzBox SDK as the simplest way of adding a scheduler and notifications to your apps. http://hub.buzzbox.com
Yes, here is a good tutorial with all code you need:
http://blog.boxedice.com/2010/10/07/android-push-notifications-tutorial/
http://tokudu.com/2010/how-to-implement-push-notifications-for-android/
use this link for learn and source code for push notification in android and build on android 1.6 you can use MQTT library. And for testing push notification in emulator refer this link.
Android Cloud to Device Messaging (C2DM) - Tutorial