Push Notification on Web view app using Xamarin and Firebase - xamarin.forms

How can I send push notification to a web view application using Xamarin and Firebase Cloud Messaging?

To add push notification ability to your app ,you have to implement it in each platform project:
For Android, please read the document, there are detailed steps about how to implement remote Notifications with Firebase Cloud Messaging.
For iOS, You can use Xamarin.Firebase.iOS.CloudMessaging to send iOS push notification by FCM.
There are also steps here: Firebase Cloud Messaging on iOS

Related

VS 2022 Xamarin.Forms Firebase Cloud Messaging working example

Trying to add Push Notifications to my Xamarin.Forms app, and cannot find any working example to implement Firebase Cloud Messaging.
I mean, not a single working example of all the examples/tutorials.
Can you point me to one, please?
You can first check document Firebase Cloud Messaging. This article provides an overview of how FCM works, and it explains how to configure Google Services so that your app can use FCM.
The implementation process in xamarin android is similar to that on xamarin forms.
You can also find more tutorials in your browser.
For example:
Implement Push Notifications with Xamarin.Forms (Android) and FCM
and
Implement Push Notifications with Xamarin.Forms (iOS) and FCM .

Wake up react native app to obtain fcm token

We recently integrated firebase to out react native apps on android and ios for push notifications using react-native-firebase. Since we do not currently have the fcm tokens and we can only obtain them once a user opens the app once again. Is there a way to send notifications to all the users or to schedule a local notification using react-native-firebase without the user opening the app so that we can obtain the fcm token for the device.

Ios push notification in ionic application

Push notification not receiving to my IOS device which is working fine for android. I am using Firebase to send notification for android and IOS, I have configured the google-service-info.plist file to my Firebase account and enabled push notification in Xcode before taking the build. But I am not able to receive the notification, is there any additional configuration that I required to change for IOS? Why am not getting push notification which works fine by default for android?
I am able to get device token of IOS that am using this token to trigger notification.
if you are still having this problem with ios push notification. This is how i solved it.
Login into your apple developer account and create an APNs Authentication key (.p8 file).
Then upload it to your firebase console in the cloud messaging tab.

SDK for creating Push Notification for Xamarin Forms

newbie here. I was doing some research on using Xamarin Forms for Push Notification. Understand there are APN (Apple Push Notification), FCM(Google) and WNS (Microsoft). However, I could not understand the iOS App rule on using Push Notification:
1) Push Notifications
https://developer.apple.com/app-store/review/guidelines/2016-06-13/
1.1) Apps that provide Push Notifications without using the Apple Push Notification (APN) API will be rejected
1.2) Apps that use the APN service without obtaining a Push Application ID from Apple will be rejected
what if I use FCM ?
2) What is the SDK for Xamarin forms to build a push notification app which will doing the registration and interacting with app back-end?
What is the best approach for Xamarin Forms?
Thanks
Apple Push Notification Service or (APNS) is the only one who can send push notifications to an iOS device. This is why we provision our app with the proper certificate.
The same applies to FCM or WNS. However, services like Amazon Simple Notification Service (AWS SNS), wrap around all three providers and allow us to make one simple API call to recieve notifications from all 3 providers.
For example, we then provide our certificate that Apple provides us to authorize SNS to send a notification to APNS on our behalf. Push notifications are usually device/platform specific.
AWS SNS Xamarin SDK documentation has good pointers : http://docs.aws.amazon.com/mobile/sdkforxamarin/developerguide/sns.html
This is a Xamarin.Forms Github example for the AWS SNS service.

push notification in Xamarin.forms PCL

I need to implement push notification in xamarin.forms project.
I go through these links but cannot find a good sample code.
How to approach push notifications on Xamarin.Forms project?
Add push notifications to your Xamarin.Forms app
Xamarin Push Notifications Using Azure Notifications Hub
implemented Push Notifications in awesome Xamarin.Forms
Most of sample is using azure service. I do not use that one. The back end team will manage to send notification to device. I just need to pass token of notification and handle the given notification at my end.
I got one plugin for Push Notification but cannot find a sample or some useful code for how to use or implement it.
xamarin-plugins for PushNotification

Resources