send notification to ios and android using FCM Rest Api (New Versio) - android

I have a net core Back-End (3.1).
I created a page in which admin should enter title and description and pick a user to send a notification.
I want to send notification payload to Apple devices and not to an android device similar to a custom notification.
there is a platform-specific notification in Firebase Cloud Messaging documentation .
However, I was not able to implement it .

If you wanna only send the notification to Apple devices only. Then APNS Push notification push gateway will be suitable for you. See here
Certainly, FCM can also deal with this issue. You need to add the ApnsConfig to your request and send it to the FCM server.
If you cannot implement it, you need to mention more detail about your issue (trace log, exception info, etc.)

Related

How to sent Automatic messages on button press from Firebase console using FCM?

I have been developing an application for both Android & iOS . I have worked with the Firebase notification and I am aware of notification using legacy server key but my main motive is to use only Firebase console for notification and replace my godaddy server so that I can be able to send notification on button click .
Question 1: Is there any Api or SDK available from firebase in which I can send notifications to mobile devices from another server(amazon or godaddy) ?
Question 2: Is there any way or method available from firebase in which I can send notifications to another mobile device having my app installed by tapping a button from one device(basically one to many approach)?
For sending push notification from your server refer FCM Application Server. Yes, you can send notification from one device to another by using Topics or Upstream Messages (Refer here : FCM Android

Azure: Should a blank android app configure with azure library to send azure push notification or not?

I am new to azure and firstly i want to send push notification by azure portal, so i was reading this tutorial https://learn.microsoft.com/en-us/azure/notification-hubs/notification-hubs-android-push-notification-google-fcm-get-started
i have already a blank android app and i want to send push notification by that blank app so can i do it with that or i have to make a new blank app which should be configured with azure notification hub as described in above links point(Connect your app to the notification hub) after connecting with FCM ?
Please help me
It IS possible, but NOT recommended as your referenced documentation said as below.
This example of sending notifications from the client app is provided for learning purposes only. Since this will require the DefaultFullSharedAccessSignature to be present on the client app, it exposes your notification hub to the risk that a user may gain access to send unauthorized notifications to your clients.
If you are making your app for public purpose, bad user could get security key of push notification and could send spam messages. So, to address this issue, you need to create Azure WebApp to register and send push message.

Is it mandatory to use GCM service to show push notification?

I am developing a Cordova app having a Java backend. I want to know if it's mandatory to use GCM service in order to show a push notification in Android/iOS (in notification tray)?
I am using Apache Kafka, MQTT brokers in my backend. Is it possible to show push notification using these solutions, i.e. using completely self defined solutions?
Using MQTT & other brokers I am able to send realtime data to users but how to show those message as native notification in notification bar is my problem.
Yes, you will need to use GCM to send push notifications to Android devices. You can even use GCM to send push notifications to iOS devices (GCM makes request to APNS (Apple push notification service) to make it work).
But GCM for iOS isnt trusted much.
You can use any backend to send push notification to your devices. You just need to make a request to GCM/APNS.
This is the cordova plugin for push notification.
Integrating with GCM is damn easy, but it takes a little effort with APNS.
Most people use third party paid services like Pushwoosh to implement their push backend because its convenient. There is a free alternative OneSignal but it tracks your usage.
Follow this guide to setup push for APNS. (You can just use the Setup certificate part from this guide, since you are not using C#)
To receive push you need use/implement GCM(and actually FCM, because of GCM deprecation)
To show notification from app it is unnecessary to implement GCM/FCM

Client triggered Parse.com Push notification

I am creating a simple forum app for ANDROID using Parse. I am stuck at a problem related to notifications
For instance I want that when user A posts a comment in a forum app, user B (who subscribed to that post) will receive a push notification, can I do that using either client code, instead of handling it using Cloud Code, or the REST API? If not then how to I start developing the server side to use cloud code or REST API
Allowing users to send push notifications via the client is bad for security reasons. It's not incredibly difficult to get the application id and client key to an app. Anyone with that information will be able to create their own code that allows them to target whoever they want with push notifications if client push is enabled.

Sending push notifications to a list of friends in an Android Native App

I am creating a native Android application that sends push notifications to a specific list of friends. How to send push notifications just to this specific list in Android ?
Actually Push Notification mainly sends from server, from application side you must need to create one Browser Key on Google Api Console, after creating your app there and need to activate GCM from there.
Then, you need to give GCM Registration Id to your server and then whatever push you want to fires, server triggered one query with it and will send push to all your friends list.
Take a look the Urbanairship, it provides send the notification by registered tag/id, and also provide broadcast notification.

Categories

Resources