Firebase Spark Plan Cloud Messaging Limits [duplicate] - android

This question already has answers here:
Firebase FCM Usage Limits [closed]
(3 answers)
Closed 5 years ago.
I am trying to implement Firebase messaging service in my Application. The only use I make of firebase is to send data from my own created Web services and on the Android App side to receive these messages.
I don't use any other feature at all. I store the device token IDs on my own Database.
Suppose a million users have installed the App. Will there be any disruptions arising? I can't quite make out what the number of simultaneous connections means on the Pricing page. I am using the SPARK Plan.

The simultaneous connections referred to in the Pricings Page is for Firebase Realtime Database.
Firebase Cloud Messaging is a Free Service (also see my answer here).

Related

Sending notifications from angular website to android app [duplicate]

This question already has answers here:
How to send one to one message using Firebase Messaging
(5 answers)
How can I send a Firebase Cloud Messaging notification without use the Firebase Console?
(17 answers)
Closed 2 years ago.
This might be a duplicate questions, but still. I have seen many tutorials on sending notifications from Firebase Cloud Messaging to an android app, but I don't understand how to send notifications from my angular website to firebase, which will then push these notifications to android app. In all these tutorials, they have sent notifications by manually typing messages in the firebase UI.
My question how do I send notification data from my angular website to FCM, which will then send these notifications to my android app? Any references for this? Any procedure to follow?
In your case, you might consider having your own app server that will provide an API for your angular app to send notification. Here's a documentation on how you can send a notification to a device from your server.
https://firebase.google.com/docs/cloud-messaging/send-message
There are different parts of this implementation actually. First, your app server needs to provide an API to the Android app that will be used to send the firebase registration token from your app when the app is launched. You might consider storing those registration tokens in your backend database.
Then the other API that your server will provide, to send notification, can be integrated in your angular app. The server API should be able to find the exact registration token of the device where you need to send the notification and will call the API from FCM to send the notification to the device. Here's the API doc that you might consider taking a look into.
https://firebase.google.com/docs/cloud-messaging/http-server-ref
Here is a good tutorial that shows how you can implement the server side implementation to send the notification.
https://www.pluralsight.com/guides/push-notifications-with-firebase-cloud-messaging

Using local app to test Push Notification [duplicate]

This question already has answers here:
Where can I find the API KEY for Firebase Cloud Messaging?
(12 answers)
Closed 4 years ago.
I am very new in both Android Development and fcm. I have been building a mobile app, and I want to use Firebase Cloud Messaging
to push notifications to particular users(by making them subscribing to different topics). I've already created a Java Server (apart from the mobile app) but I could not figure out how to test it on my application because I don't know how to find fcm key for my application if there is any. Is there a way to test my server locally or is it obligated to have an application registered to Google Firebase? Any help would be appreciated, thanks in advance.
Yes you can.
The FCM API key (Server Key) can be found in the firebase console under your project :
Project Settings > Cloud Messaging
Is there a way to test my server locally or is it obligated to have an application registered to Google Firebase?
You definitely need to register your application to firebase to use FCM and get the key.
I could not figure out how to test it on my application because I don't know how to find fcm key for my application if there is any.
After you register your app to firebase and link it to your Android studio project,
(https://firebase.google.com/docs/android/setup)
Go to your project settings in firebase,
In your project settings, click on Cloud Messaging, the Server Key is your FCM KEY
Follow this to send message from your server to device. You can also use firebase console to do that,
How can I send a Firebase Cloud Messaging notification without use the Firebase Console?

Android - Firebase Cloud Messaging Device to Device Push Notification Without Server [duplicate]

This question already has answers here:
How to send Device to device notification by using FCM without using XMPP or any other script.?
(3 answers)
Closed 5 years ago.
Is there a way to send push notification between 2 android devices without a server?
I found some tutorials but all of them was using the node.js for sending a notification. (Or I found that some samples that were using the firebase console for doing this)
Nope,
You need a "server" to do push notification. You can use a variety of services to do that, as you mentioned firebase is one of them. You may not need a full on server, but you need some kind of service to do that, you can't simply send notifications between devices straight away:
Some examples are:
AWS Serverless functions
Cloud functions in firebase
If you'd rather use one of these services, then you'll need to configure FCM in your app, you can check how to do that in the docs. And some nice sample codes here :)

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.

Is GCM (now FCM) free for any limit? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 1 year ago.
Improve this question
I would like to know if Firebase Cloud Messaging is free or not for unlimited users?
In addition to the answer from AL.
From the Pricing page Faqs:
Which products are paid? Which are free?
Firebase's paid infrastructure products are the Realtime Database,
Firebase Storage, Hosting, and Test Lab. We offer a free tier for all
of these products except Test Lab.
Firebase also has many free products: Analytics, App Indexing,
Authentication, Dynamic Links, Cloud Messaging, Notifications,
Invites, Crash Reporting, &, Remote Config. You can use an unlimited
amount of these in all plans, including our free Spark Plan.
So, it's free. The limit is not mentioned anywhere in the docs, however there's a limit on the Firebase realtime database, as mentioned in the FAQs:
Firebase imposes hard limits on the number of connections to your app's database at the same time. These limits are in place to protect both Firebase and our users from abuse.
The free plan limit is 100, and cannot be raised. The Flame and Blaze
Plans have an initial limit of 10,000 simultaneous database
connections. This is to prevent abuse and can be raised by contacting
Firebase support with 24 hours notice.
This limit isn't the same as the total number of users of your app,
because your users don't all connect at once. We encourage you to
monitor your peak simultaneous database connections and upgrade if
needed.
We're working hard to remove the initial 10,000 simultaneous
connection cap on the Flame and Blaze plans.
So if you are using the Firebase Database to save your User's data and want to send a lot of Push Notifications to your user's devices using the FCM registration token stored in the Firebase Database, you might hit the limit in the free Spark plan, however it's really tough to hit the 10k limit.
From the Firebase Cloud Messaging Docs:
Firebase Cloud Messaging (FCM) is a cross-platform messaging solution that lets you reliably deliver messages at no cost.
You can refer to the official Firebase Pricings page. From there you will be able to see the types of projects that are available: SPARK, FLAME, BLAZE, to which all of them have FCM (along with Analytics, App Indexing, Authentication, Dynamic Links, Invites, Notifications, Crash Reporting & Remote Config) included for free.
Firebase Cloud Messaging (FCM) Connection Server (CCS) sits between the device and the app server. The following limits apply
From the documentation here, it seems FCM does impose a limit of 1000 connections in parallel.
For each sender ID, FCM allows 1000 connections in parallel.
Sender Id is a unique numerical value created when you create your Firebase project, available in the Cloud Messaging tab of the Firebase console Settings pane. The sender ID is used to identify each app server that can send messages to the client app.
Note: Please correct me if this limit is not about the max connections from an app server to CCS
Secondly, You should also read about Flow Control if you are using the XMPP connection server protocol (which has to be used if using device-to-cloud messaging). There should not be more than 100 unacknowledged messages towards CCS at any single point of time.
If the pending message count reaches 100, the app server should stop sending new messages and wait for CCS to acknowledge some of the existing pending messages

Categories

Resources