Well I have an android app like social network,I m using GCM, to send push notification,
When a User A follow User B , User B will receive notification saying "that User A has started following you".
Now I'm trying to prevent abusing/spamming sending multiple push notification.like follow and unfollow follow again and so on.
What is the best approach to tackle this problem .because I don't want my users to get abused receiving multiple notifications.
I've tried to look for a perfect solution regarding this issue.Unfortunately I can't find any answer.
You can send notification to user just one time for follow and for unflallow, Then you should not send any notification for that , because it is not valuable information.
Related
I am now trying to make a mobile app push notification service on Firebase. But the function description is not quite specific as I expected.
I want to know these functions are available on Firebase. If not, It would be pleasure If you tell me other tool.
User can select the push message types they want to receive.(Ex. Receive sale information push, Do not receive game event push)
Instantly send auto push messages when user triggered certain condition.(Ex. Send appreciate push message when user closed their first app-open)
Thank you
Can not tell in much description here:
1. User can select the push message types they want to receive.(Ex.
Receive sale information push, Do not receive game event push)
You can use FCM's channeling feature,
You can set different channels.
Show the list of channels to user.
User can subscribe to the required channel.
User will receive the specific channel notification only.
Please refer : Notification Channel
2. Instantly send auto push messages when user triggered certain condition.(Ex. Send appreciate push message when user closed their first app-open)
You have manage this thing in your front end and backend logic.
Like on app close send request to the backend (can use onDestroy method )server and then the backend server will send notification.
Hope this will help you.
For Feature 1:
You can achieve this without even doing anything. Just send all notifications to everyone. However, use different Notification Channels. Users, can then choose to turn on/off certain notification channels using the Android system features (in relatively newer versions of android).
Another way could be to send these notifications to different FCM Topics. Give the users a settings pages, where there can select what kinds of notifications they would like to receive. In response to their selections, subscribe or unsubscribe them to the respective FCM Topic.
For Feature 2:
There could be several hundred ways of doing this. Can provide better advice if you could provide more information about your requirement.
If you talk about your example requirement
(Send appreciate push message when user closed their first app-open)
You can do it without any server, or push messaging scheme. Just keep track of the first_open event inside the app using Shared Preferences. Once you detect a first_open event, just compose a notification inside of the app locally, and show it whenever you like.
I know how to send notification to single user and multiple users by using subscribeToTopic ("all"), but how can I send Notification to a group of people according to my wish
To solve this, use Cloud Functions for sending notifications. You can send a notification to a single user or to a group of users according to your needs. I've exaplained the entire flow for doing this in my answer from this post. So a notification can be sent, even if the user has not opened the app. He will receive the notification every time something interesting happens.
I am searching for 5 days how to check and show users-list online/offline in my android messenger app.I am new in android and i need suggestions.
I need to check and show users on/offline status :
I did it the following, not that it is the only way.
I used push notification system. When a user comes online, it sends a notification to the server, server checks its friends so that it knows whom to notify, then send another push to the correspondence devices. On reciever, instead of pop up, I just changed the view or etc...
I did that long ago with GCM for a company. Firebase is the new GCM.
Not sure if it's the most helpful way but it works.
Firebase
Hi i'm developing a news android app, and i want to send a push notification to all the registered devices, but apparently Google said in their tutorials that you can send a push notification to up to 1000 users. but this is very frustrating and i know apps that send push notifications to all their users.
I'm very confused about this and i have been looking for a solution for three days now, is there a clear way to send a push notification to all app-registered devices or not ?
Thanks in advance.
If you are planning on sending out push notifications in large quantities and to large user groups you should consider using a back-end service to simplify your life. Parse is one option. You can send push notifications to all of your users or even send out custom notifications based on certain conditions. You can find more information here:
https://parse.com/tutorials/android-push-notifications
There is no limit in sending the notification to the number of user.
GCM allows us to attach a message to 1000 users at a time. This doesn't mean there is a limit to the gcm notification
Refer this
http://developer.android.com/training/cloudsync/gcm.html#multicast
Here I am developing an android app which deals with housing complex.
In this app their are 2 kinds of users:
Builder/Complex Owner
Flat Owner.
Now here the Builder/Complex Owner can send push notification to flat owners.
How can I achieve that? Please help.
Here I cannot use G.C.M as G.C.M. is used for server side push messaging.
Not sure if there is any other way. What you could do is to let the app send a push notification request to the server, then the server would issue the push notification through G.C.M. If you don't have a server available you could do it through text messages but be sure to have a good text messaging plan. You could possibly also use an existing service (for example Facebook) and send the messages through their API.
EDIT:
To do it via text messages: SMS receive with no notification. Again, make sure that you have a good text messaging plan if doing this. Sending an SMS to ten different people will count as ten different SMS messages.. If you have a lot of users it would probably be cheaper to get hold of an SMS server. But then again, you should just use G.C.M.
It is possible to send device to device push notification using gcm.See this link.