SignalR vs Google Cloud Messaging [closed] - android

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I have a .Net based backend server which is hosted on Azure. I'm attempting to build an android app with Xamarin. The app will have a chat feature that will allow the users to communicate with each other.
I have been using SignalR for simple real time web tasks and I know much of the same can be achieved with Google Cloud Messaging for android however I have read that SignalR is more reliable than Google Cloud. I'm more in favor of using Google cloud messaging service as it doesn't require constant connection to the back end hence saves battery time. But the only dilemma I have is that whether I would be able to implement the chat for the web.
The idea is to use SignalR for web and Google Cloud Messaging for the android. I will need to make sure that both chat sync. Is it possible to do so? or should I use SignalR for both?
Any help is appreciated!!

Yes, you can use signalR on both platform. I am also using signalR on my application. Even its giving me better service instead of only Google cloud messaging. My one of android application included signalR and GCM both. when my application is foreground i use signalR and when it go to background i use GCM. and still it stable for me. You can try like this

Google cloud messaging (GCM) is not recommended for making chat applications. You should stick with SignalR. Google cloud messaging is usually used for push notifications.
If you really want to use GCM then I will recommend you FCM, but it is a separate solution in contrast to SignalR (& .net)
Firebase Cloud Messaging (FCM) is the new version of GCM. It inherits
the reliable and scalable GCM infrastructure, plus new features! See
the FAQ to learn more. If you are integrating messaging in a new app,
start with FCM. GCM users are strongly recommended to upgrade to FCM,
in order to benefit from new FCM features today and in the future.
Update
GCM (or FCM) will have advantage over signalR considering battery usage.

Related

FCM Google Pricing Explanation [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I have an app and I need to send massive push notifications per day. About Firebase services, I'll just use the Firebase Cloud Messaging (FCM) part (through my server-side PHP, of course I can't send massive notifications per day by console) and maybe Analytics (both are free of charges, right?).
The Pricing Page doesn't make a good explanation about what is each line below. So I need to know if:
If "Storage Upload operations" is when the app sends to Firebase some data?
If "Storage Download operations" is when the console (or my Server Side) sends to a device/group/all some push notification?
If I'll only use the Cloud Messaging part, is it better buy the BLAZE plan? If yes, what exactly do I have to add at this plan?
First, I think you are confusing the Notification service with the Cloud Messaging service (hence my edit).
Notifications is the part where you get to send Push Notifications through the Firebase Console. Cloud Messaging, is FCM itself, where you can call the APIs and send push notifications from your own App Server.
Firebase Storage is a separate service from both Cloud Messaging, Notifications, and Analytics. The thing is that Firebase Storage is paid and the other three are included free of use, regardless of what plan you are using. As seen in the Pricings Page:
Included Free
Analytics, App Indexing, Authentication, Cloud Messaging, Crash Reporting, Dynamic Links, Invites, Notifications & Remote Config
It does not contribute/add to the count value of usage for the other services.
There are only four paid Firebase products at present:
Firebase Realtime Database
Firebase Storage
Firebase Hosting
Firebase Test Lab
All other products including Firebase Cloud Messaging are free to use. Firebase Storage is a totally separate product from Firebase Cloud Messaging, so this question isn't really relevant.

Difference between FCM (Firebase cloud messaging) and GCM? Which one is better for Android push notification? [duplicate]

This question already exists:
FCM Vs GCM? Why we need to migrate from GCM to FCM [duplicate]
Closed 6 years ago.
I want to use Push notification in my app, Other things like sync with server database I had handled manually , So which is the best option to go ahead?
Also can I use GCM API keys with FCM?
Does FCM is free for unlimited number of messages?
FCM is the new version of GCM under the Firebase brand. It inherits GCM’s core infrastructure to make sure we continue to deliver messages reliably on Android, iOS and Chrome.
FCM is the new version of GCM under the Firebase brand. It inherits GCM’s core infrastructure, with new SDKs to make Cloud Messaging development easier.
Benefits of upgrading to FCM SDK include:
Simpler client development. You no longer have to write your own registration or subscription retry logic.
An out-of-the-box notification solution. You can use Firebase Notifications, a serverless notifications solution with a web console that lets anyone send notifications to target specific audiences based on Firebase Analytics insights.
To upgrade from GCM SDKs to FCM SDKs, see the guides for migrating Android and iOS apps.
If you'd like to see the differences between GCM and FCM, visit the Firebase documentation - FAQ section.

online notification in android

I've built an Android application by android studio.
I want to be associated with users online and notify changes and news.even when my application is closed.
This is what is on my mind,I have web server, i want create a internet connection listener and when connection is available,application or a part of it connect with the server and get new information and notify the user with a notification.even when my application is closed.
How can I implement and enforce it?
Try "Google Cloud Messaging."
Per their Developer Console Help page: "Google Cloud Messaging (GCM) is a free service that helps developers send messages across multiple platforms: Android, iOS, and Chrome. For example, a server can send messages directly to single devices, groups of devices, or devices subscribed to topics. Also, the application on a device can send messages directly to a server and to devices belonging to the same group."
Use the Google Cloud Messaging service alongside the Google Plugin for Eclipse. Google Cloud Platform explains as: "When targeting Android devices, it is easy to get started by using Google Plugin for Eclipse (GPE). GPE allows you to generate an App Engine Connected Android Project that provides the basic logic needed for sending push notifications using Google Cloud Messaging for Android from a mobile backend running on Google App Engine."
This could send messages for you without having to do the work on your own server. If this answer helped you, please consider up-voting or accepting it as the answer. Thanks, and best of luck on your project!
No,These systems are always some limitations and managed with others.I do not need to communicate with iOS or chrome ,I need to design a system that's all for me.Experience has shown me great services, such as Google services and any other company affected by political issues.for example i live in iran right now.
All production-oriented and knowledge-based services for this country is banned.
due to this problems i prefer to have my own messaging and notification system.

How to handle push message on android without ACS [Titanium] [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
I've been trying to catch a push notification when the app is not running or in background mode.
I found this module https://github.com/jayeshIT/Google-Cloud-Messaging-Titanium
And only works when my app is running or in background mode. There is a way to catch push android without ACS ???? p.d. I tried creating a service with a interval but only works when the app is in background or running please help!
In order to implement push notifications for Android without using a third party service such as ACS or UrbanAirship, you must implement your own application server that stores and retrieves device registration ids that are created by Google-provided GCM Connection Servers.
Here is the Google documentation for implementing a GCM Server.
Basically, push notifications are sent from the sending device to the application server and then through Google's GCM Servers to the destination devices, where the devices' operating system receives the push notification an displays it appropriately.
It may be easier to implement push notifications initially using one of the free accounts on the third party services (ACS, UrbanAirship), and once the mobile functionality is developed and tested, implement the application server and refactor the mobile code as needed.
Hope this helps. If so, please up-vote (need the rep to use other features in SO :)
I would start with the Urban Airship module: https://marketplace.appcelerator.com/apps/4984
The module has support for iOS and GCM and its open source. Here are the direct links to the builds: android and ios
http://urbanairship.com/ They have a free tier. If nothing else this will get you started, and once you have this setup it will be easier to try and do it yourself.
There's plenty of documentation for setting up the API Key's for GCM, do you need me to track those down to?

Google cloud messaging with CCS [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am new to GCM and have a few questions regarding an app implementation. The app should be capable of upstream messaging. So -
Do I have to create a server (lets say in Google App engine) which will communicate with GCM. And then GCM will send the message to the app. Or I can do it just with CCS connection and my device can send message to app on another device without a server?
Is there a code example of writing server side code which I can use in App Engine? I badly need some tutorial/code implementation on CCS to understand the logic. I dont think android developer site is enough to understand things clearly.
Help appreciated!!
Hi Actually I am using http://parse.com to create server and push notification in android.
First of all you should always go to the source and read, as Google provides samples and everything.
About 1 and 2 then it depends if your going to use a third party provider or do everything yourself.
If your making everything yourself then YES you need a server and YES Google provides some code but I've never used it so I can't tell you how much work you have to put in it.
If you just want GCM capabilities but it doesn't have to be Googles, then there is plenty of alternatives out there: Parse.com and Urban Airship to name at least two.
Following link will help to code GCM but it is unidirectional(from third party server to cloud only)
http://avilyne.com/?p=267
Google GCM CSS provides upstream messaging that is from application(http://developer.android.com/google/gcm/client.html), you can send a message. This message will reach the Google server and they will send you the same message to your server, which you have to implement(https://developer.android.com/google/gcm/ccs.html).Do what you want with it.
If you have to send a message from your server to the client(application), you can send it via your css server or by making a http call to the google gcm http server. They will send the message to the client. You have to handle the received message and can show as a notification or use internally.

Categories

Resources