Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 days ago.
Improve this question
We are stuck in a weird situation.
We are using Firebase to send push notifications to all our Android app users, but for some reason our admin has deleted that Gmail account without informing us (few months back). The account was set to send some already scheduled recurring messages, which are coming these days too; so we did not know that the Gmail account has been deleted. Now when we try to access the Firebase console to add some more notifications, we could not use that.
We have tried setting up the same project with another account, but not able to send the notification messages. It is not showing any error but when we send push notifications user would never receive the notification.
Please help us on How to setup the project with another Gmail account?
Thanks in advance.
Tried setting up another account but not able to send notifications
Related
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 2 years ago.
Improve this question
So, I'm working on a chat app and I am having trouble sending notifications using FCM to chat groups or channels.
There are 2 options I tried using:
Device groups: This is perfect but, The docs says that I can only add 20 devices to a group and that's no good as I need many more to be added.
Topic Messaging: This is also good but I wish there was a way to restrict hackers from joining to other topics and getting notifications from private messages/channels.
A third option is to store everyones device token in my database and then send each one a notification but this sounds so inefficient but I'm not really sure. Is this approach fine?
I'd suggest the 3rd option.
I don't know if Firebase supports such option yet.
At user's login save their FCM token
Group user's in your database
Run a foreach loop to send push notifications to the users that belong in one group.
I'm doing this in my own application and there is no much delay in Push notification delivery.
If you are using PHP as your server language you can use the curl_multi_init
This will send all the request at the same time. Hence the time required for your server to send all the Push notifications will be around 300ms.
On the other hand if you are not using PHP, there must be some similar ways you can achieve the same in your preferred language.
Keep in mind that there is no best implementation. It depends on the number of users using your app. It wouldn't be that wise to over-engineer this when you can do it really simple.
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 4 years ago.
Improve this question
Problem:
1)Android App with senderId And serverkey working good till last week, able to receive the push notifications.
2)senderId And serverkey were generated on last year(Creation date
Aug 31, 2017, 5:10:20 PM).
3)Now app server gets error "2018-09-05 12:52:04.289 pid:29578 worker:2 error: Push Notification error : "SENDER_ID_MISMATCH"
Questions:
1)free GCM service used and is there whitelisting after a year?
2)https://firebase.google.com/docs/reference/fcm/rest/v1/ErrorCode
SENDER_ID_MISMATCH The authenticated sender ID is different from the sender ID for the registration token.
This is not in my case. Hows the GCM server reporting SENDER_ID_MISMATCH? Is it a google bug?
3)App is still with GCM and not moved to FCM and uses InstanceID
https://developers.google.com/android/reference/com/google/android/gms/iid/InstanceID
will it be issue?
4)Application is able to get token for google and server and send to app server.
Below device side error is linked to this?
09-06 19:19:11.456 3088-7737/? E/Auth: [GoogleAccountDataServiceImpl] getToken() -> BAD_AUTHENTICATION. Account: , App: com.google.android.gms, Service: oauth2:https://www.googleapis.com/auth/contextcontroller
fzk: Long live credential not available.
There isn't.
Not a question.
The GCM service has been deprecated, but will be completely removed by April 2019. I don't think that this is causing the issue, it might be possible. Every service that has been deprecated should migrate asap to avoid unexpected behaviors (such as this one?).
AFAIK, that's not a log that is related to GCM. It's probably related to actual authentication.
In general, posts with multiple questions isn't a good practice -- usually voted as too broad. I would strongly suggest that you split your questions in different post while providing as much details as you can.
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 5 years ago.
Improve this question
I am developing an Android application in which someone can register as user or as company. If someone registers as user, he will get a list of all the registered companies, from dropdown he can select any company and can send some information to it.
I want that whenever a user selects a company and click the button to submit information to the company, the selected company (has also installed my application and is signed into the app) get a notification.
I am using Firebase for storing user and company details and also to register them.
I don't want to use any third party sever.
Any help will be appreciable. Thanks!!
Did you try Firebase Cloud Messaging? FCM can send notifications to user/s from console and/or API.
Well you should look into push notifications a little more .
As you are using firebase it is advisable to use FCM.
https://firebase.google.com/docs/cloud-messaging/concept-options
This has all the information you will require
There are many good alternatives to FCM too.It won't hurt to look into them either
pushy:https://pushy.me
SNS:https://aws.amazon.com/sns
push Whoosh:http://androidbash.com/android-pushwoosh-integration/
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 5 years ago.
Improve this question
I want to have FCM in my app in the way It allows users to exchange messages between them. But I've been days struggling with the token thing. I have read a lot of posts but a lot of people talk about removing the token when the user logs in, but I don't want to just send messages between users logged in. What I want is between registered users, so how can I distinguish between users, how to map them with their token, because the easiest is to remove and create token whenever a user logged in, so you map user-token but with this idea how do I know the token of a user who hasn't logged in?
I also have similar problem. What i am doing is when user signup for my app it also generated a FCM token and save this linking with the user id so when i have to send msg A , I search for the user A and then get the Token of A and then send the msg.
This thing can only be achieve by FCM Server.
Have a look at the documentation. Here is also a great blog for setting up a FCM server in java.
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 want to develop an Android application which would consist in a forum. I figured I should use the datastore to persist the members. However I was wondering how to implement the sending of posts and private messages to clients?
To be more specific, if A wants to send a message to B, what is the best way to handle this? Must I use Google Cloud Messaging or put A's message to the datastore, and then wait for B to query it?
It depends, both solutions are correct.
If you need instant messaging you should choose Google Cloud Messaging to implement this. Device identifier should be stored in the database, when a new message arrives it should be pushed to the specified device using the identifier. You should use notifications on Android side to notify user about new message.
You can also implement this using pull strategy. Message will be saved in the database and queried once user opens your application or clicks refresh button.
The technologies you've used in tags are the correct tools to implement such "forum" thing. Please read the documentation for Google Cloud Endpoints and Google Cloud Messaging because you'll find useful code snippets or even sample applications which will guide you how to achieve what you want.