Background info:
I need to use GCM push notifications in Titanium project. I tried using https://github.com/morinel/gcmpush module, but it doesn't suffice my needs as I need to show the custom layout notifications. I built the layout for custom notification in my Titanium project - success. But, this module overrides the custom layout notifications and shows it's own.
We are using AWS server where we are sending the notifications.
Issues:
- Receive a push notification from GCM.
- Show the notification in the custom layout that I built.
I have been facing this issue for long. Is there any module/any other way that can help me achieving the solution?
I have tried various modules but did not work. Maybe I have missed anything to try?
Maybe I should connect my AWS server to use Arrow Push notifications? If that can be a solution, how?
Can anybody please enlighten me on this?
Thanks!
One of the most feature rich push notification modules out there, right now, is Ti.Goosh. I recommend using this module.
It allows for a lot of customisation.
Next to that, Appcelerator offers some options to make custom notifications locally. Look at the Docs for more info
This is what I use:
Android client: Ti.Goosh
Android backend: FCM (Firebase Cloud Messaging from Google, this also supports browser notifcations in case you expand your platform once...)
IOS client: Default Appcelerator registration, see docs
IOS backend: Default where you stream the notifications to APNS
Take a look at FCM, GCM is deprecating in the future so it's not worth it implementing it now.
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
I am hybrid app developer and developing app using cordova plugins. I have used "https://www.npmjs.com/package/cordova-plugin-fcm" plugin to implement push notification from my app. But currently i am seeing only last notification which was sent recently. So i want to implement features like:
To show more than one push notifications arranged in stack manner(Please see attached sampleenter image description here).
To customize push notification by adding some big image and button to provide click actions(Please see attached sample
).
I researched a lot by googling but couldn't get any article where FCM is used to send multiple notifications & to customized the notification. I found some cordova plugin like "phonegap-plugin-push" but it is not helpful because they are using GCM(older version of FCM).
If anyone has implemented this type of features then please guide to fulfill it or else provide and any article or cordova plugin details so that i will implement it.
Thanks a lot in advance!
phonegap-plugin-push version 2.0.0-rc2 uses FCM instead of GCM.
Take a look at Push notification payload details for the behaviors you need.
Use Inbox Stacking payload to show more than one push notifications arranged in stack manner.
Use Picture Messages payload to add big image and Action Buttons payload to provide click actions.
I haven't used version 2 yet (still on version 1.x), and i know i'm not solving you cordova-plugin-fcm problems, but it might be a good workarround.
I'm trying to create application for Android and iOS and, i want to use push notification on both the application. I'm going to have a server app that will be sending the notification.
but i am trying to APNS and Parse SDK it's common to use ,but i want GCM through push notifications on iOS ,can you please how can it possible ,any such information about GCM to iOS push notifications ,i am googling but i want some suggestions for GCM through iOS device notifications.Can you help me.thank you.
There is very good descriptive instructions in Google Cloud Messaging for iOS guide. It shows whole flow from registration of device token to receive push from server with code example.
After go through above guide, you may go for Setting up a GCM Client App on iOS and you are almost done to use GCM with iOS application
Update: GCM now supports IOS. See Grigo´s comment.
GCM is Android specific. If you want to avoid dealing with 2 different services for IOS and Android, you can use something like Amazon SNS for example. SNS now supports pushing cloud notifications to Android, IOS and Windows devices via the AWS Mobile SDK.
I have an application for for iOS, Android and Windows mobile.I want to send notifications to the application. AFAIK as someone new to this, I think that I need to send the notifications from my server to GCM server for Android and APNS for iphone, I have no idea for windows.
I was hoping if I can send the notifications directly to the phone (setting up a XMPP server , what the IM messenger usually use (JABBER,EJABBERD etc.)) without going to APNS of GCM .
EDIT : The application is an enterprise application so some customers don't want to share aur route their data across GCM or APNS servers.
Is that possible, please guide me to the same .
Thanks.
Take a look at https://github.com/Redth/PushSharp, It's a pushnotification service library for Windows, IOS and Android
Push notifications for Windows Phone: http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff402558(v=vs.105).aspx
Or you can use a service like Parse.com that allows you to manage push notifications for all he platforms using one API.
The library does that for you, you first need to do some configuration Check here.
Look a the samples.
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.