Firebase Push Notification in Xamarin Forms - Xamarin Forms Tutorial

Firebase Push Notification in Xamarin Forms - Xamarin Forms Tutorial

SPTutorials

5 лет назад

30,391 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@gilbertoalexandre534
@gilbertoalexandre534 - 22.10.2019 03:17

I was already thinking that push notification in Xamarin only worked in ancient times ... Thanks so much for your contribution!

Ответить
@lessknownindeed
@lessknownindeed - 04.12.2019 22:25

Very clear explanation..great!

Ответить
@learnwithambalika3302
@learnwithambalika3302 - 28.12.2019 08:24

where do i get the user token for specific user?

Ответить
@Mryesify
@Mryesify - 08.01.2020 17:10

Can Xamarin allow users to send push notifications to other users? Like an Administrator having special permissions on their app?

Ответить
@DreamArt29
@DreamArt29 - 18.01.2020 15:30

how can we send image and icon from firebase ?

Ответить
@SubhashTiwary
@SubhashTiwary - 27.01.2020 05:03

Getting an Error "java.exe" exited with code 1. While checking the Buld Log it says " PROGUARD : warning : there were 100 unresolved references to classes or interfaces.
1> PROGUARD : warning : there were 2 unresolved references to program class members.". Please suggest what to do? Disabling the Proguard option in Release mode solves the problem but in that case the app size increases.

Ответить
@manjunathams8958
@manjunathams8958 - 28.01.2020 20:01

<category android:name="${applicationId}" /> is converted to <category android:name="$(applicationId)" /> when i build and showing the errorTag <category> attribute name has invalid character '$'.

Ответить
@manjunathams8958
@manjunathams8958 - 28.01.2020 20:18

Thanks bro, Coded without any error. Sending Messages from firebase not displaying in mobile phone (android pie) any reason?

Ответить
@manjunathams8958
@manjunathams8958 - 28.01.2020 20:25

Thanks bro, after some time i reopened app and checked working fine. Thanks bro, you saved my life. God Bless you..

Ответить
@teatimewithdre
@teatimewithdre - 30.01.2020 16:12

Thank you very much! I have been struggling with this issue for weeks

Ответить
@deivydrodrigoquispepoma8344
@deivydrodrigoquispepoma8344 - 05.02.2020 03:41

Excellent video, but a question as I show the notifications that are in the background. I would appreciate your answers.

Ответить
@tariqalzubi5137
@tariqalzubi5137 - 14.02.2020 05:09

thanks

Ответить
@manjunathams8958
@manjunathams8958 - 14.02.2020 18:43

Bro, I had one doubt, In the video you told that we can save generated token(device ID) into db, without any login information how can we save? or How can we get that device Id after login into the app? How can we access that device id wherever we want in application?


thanks in advance !

Ответить
@MrJesha28
@MrJesha28 - 18.02.2020 10:45

hi, how firebase message to display as display alert on xamarin?

Ответить
@damarhardy7710
@damarhardy7710 - 06.03.2020 12:50

Hi first of all thank you for this tutorial. But i'm having some troubles, first the notification doesn't show on Head-up display and the sound + vibrate doesn't execute as well. Do you have a solution for this?

Ответить
@BlalKhalidTech
@BlalKhalidTech - 18.03.2020 17:59

hi i am working xamarin Forms with Sql Server Database i want to show notification to all users when data insert in specific table
Thanks

Ответить
@hanitwister3708
@hanitwister3708 - 22.03.2020 01:12

Bro i need your help i there any way to contact you?

Ответить
@AnkitChawdaRajlaxmi
@AnkitChawdaRajlaxmi - 06.04.2020 11:39

Thanks, bro it's working for me

Ответить
@bellekassouf8852
@bellekassouf8852 - 06.04.2020 12:44

Thank you for the guide! Do you by chance have an iOS version setup or a link to it?

Ответить
@manjunathams8958
@manjunathams8958 - 27.04.2020 10:12

Bro, Its working fine with android Oreo, but when i move to android pie, the code which we have written is deprecated and Applcation get crashed when i send push notification, in debug mode i got the bellow error

Java.Lang.RuntimeException: Unable to instantiate receiver com.google.firebase.iid.FirebaseInstanceIdInternalReceiver: java.lang.ClassNotFoundException: Didn't find class "com.google.firebase.iid.FirebaseInstanceIdInternalReceiver" on path: DexPathList[[zip file "/data/app/com.isat.GraduateGuru-tmLocHA5EVv0pwFs-XolYg==/base.apk"],nativeLibraryDirectories=[/data/app/com.isat.GraduateGuru-tmLocHA5EVv0pwFs-XolYg==/lib/arm64, /data/app/com.isat.GraduateGuru-tmLocHA5EVv0pwFs-XolYg==/base.apk!/lib/arm64-v8a, /system/lib64]]


Is there any way to come out of this issue? or is there any separate implementation?

thank you

Ответить
@3dtotalrig26
@3dtotalrig26 - 29.04.2020 13:37

In the file MyFirebaseIIDService how do you implement the method SendRegistrationToServer to send the newtoken back to firebase server ?

Ответить
@AmerAlfaqeeh
@AmerAlfaqeeh - 02.05.2020 23:00

thank you very gooooooood , Please for IOS if you can

Ответить
@shahidouahdi3814
@shahidouahdi3814 - 10.05.2020 07:25

I have a small question. how can i do an action when notification received ? should i creat an interface or something ? can u help me with that ?

Ответить
@QueXopaPTY
@QueXopaPTY - 21.05.2020 02:40

Thanks a lot!

Ответить
@adarshbhat7436
@adarshbhat7436 - 09.06.2020 15:48

Pleae give Firebase push notification for iOS tutorial

Ответить
@Pushpendrasingh-rt9eh
@Pushpendrasingh-rt9eh - 18.06.2020 14:53

Hi i am using vs 2019 and facing an error in Notificationhelper class Resource doesn't contain a definition for raw... please suggest what should i do to overcome this bugs

Ответить
@vinodgomes9500
@vinodgomes9500 - 21.06.2020 22:02

Thanks for the video on Android. Would appreciate if you can post the same on iOS.

Ответить
@sheikhshuaib8451
@sheikhshuaib8451 - 03.07.2020 16:12

Sir, How can I achieve suppose I added a new employee from another project's FORM(responsible to add the employee) to database and in our xamarin project the notification appears about that employee and on clicking on that notification the details should be shown inside a page

Ответить
@asadullahqamar4874
@asadullahqamar4874 - 09.07.2020 21:13

Nice videos on notifications! I was wondering, is it possible to use Firebase to send client to client notifications? (One user of the app on one phone sends notification to another user using the same app on another phone)

Ответить
@infosys9741
@infosys9741 - 16.07.2020 14:12

Thankyou, from where we can get firsbaseinstanceid

Ответить
@meetgurl
@meetgurl - 21.07.2020 06:23

Hi Sir, i have problem when installing Xamarin.Firebase.Messaging and xamarin.googleplayservices.base. it says not compatible with netstandard2. i already download net 3.0 but cannot change in my project at Target framework. please help me to solve this sir. thank you.

Ответить
@tonyriddle7646
@tonyriddle7646 - 25.07.2020 18:38

can anyone share Playlist for full implementation???

Ответить
@gastonhernandez9080
@gastonhernandez9080 - 01.08.2020 04:00

Nice tutorial !! Works good. What about if I want to send a notification to specific user when I click some button in my app? for example, I click a button in my app that says "Alert to John" and then John receives a notification that says "Hey John, David Alerted You!"

Ответить
@psychomode6866
@psychomode6866 - 23.09.2020 15:59

I got this error. How can I fix?
Java.Lang.RuntimeException: 'Unable to instantiate receiver com.google.firebase.iid.FirebaseInstanceIdReciver: java.lang.ClassNotFoundException: Didn't find class "com.google.firebase.iid.FirebaseInstanceIdReciver" on path: DexPathList[[zip file "/data/app/com.psycho.pushnotification-e_sjtAqqXoAhxwxIoaHOhw==/base.apk"],nativeLibraryDirectories=[/data/app/com.psycho.pushnotification-e_sjtAqqXoAhxwxIoaHOhw==/lib/arm, /data/app/com.psycho.pushnotification-e_sjtAqqXoAhxwxIoaHOhw==/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]'

Ответить
@mulayamsingh7170
@mulayamsingh7170 - 06.10.2020 10:37

Great explanations..
I have implemented this code in my xamarin forms application so i got the notifications when my app is running conditions. But when i have killed my app so notification is not coming just like whatsapp, linkdin and other applications.
So can you please let me know what should i need to do when my app is killed and I can get the notifications?

Thanks in advance :)

Ответить
@RACKEEPTEACHER
@RACKEEPTEACHER - 08.01.2021 04:50

Thanks was very helpfull, best regards

Ответить
@JaraFPV
@JaraFPV - 22.01.2021 14:22

Do you have by chance a working sample of iOS too? OR that is already implemented in the sample source code?

Ответить
@phamquangtrung8425
@phamquangtrung8425 - 04.02.2021 10:35

How to get token device?

Ответить
@bikeismybestfriend6875
@bikeismybestfriend6875 - 06.02.2021 19:11

Firebaseinstanceiid is deprecated, what to do now..

Ответить
@alexandresanlim
@alexandresanlim - 13.03.2021 17:27

Can you create a new tuto to push notification in xamarin?

Ответить
@najeebvannp
@najeebvannp - 25.03.2021 18:41

Thank you. Notification worked for me as expected.
I was trying push notification buy Onesignal but it was not successful many obstacles stopped me from continuing

Ответить
@Jorge-st2tm
@Jorge-st2tm - 27.03.2021 22:02

Perfect !! Thank you !!

Ответить
@utkarshshukla3704
@utkarshshukla3704 - 22.04.2021 06:23

Thanks for the guidance but there are two queries i want to have a look at it
first- app icon is not able show in notification
second- i want to navigate user to playstore on the click of notification

Ответить
@dexdexdex1293
@dexdexdex1293 - 27.04.2021 19:22

i have 7 errors in NotificationHelper.cs
i copy your code in github.
thanks

Ответить
@acc6540
@acc6540 - 21.08.2021 16:04

Hello, thank you for the tutorial ...
Please send us the NotificationHelper file ..

Ответить
@chintukalyan7437
@chintukalyan7437 - 21.08.2021 20:43

Hi, can you do video on fcm push notifications with image in Android and iOS, it will help us.

Ответить
@shanmuhammad937
@shanmuhammad937 - 20.11.2021 20:16

Thanks for this tutorial but I am not receiving notification when app is killed. Can you please guide me how to use data message for this?

Ответить
@cissemy
@cissemy - 02.12.2021 00:14

Great.
I am getting an error @ mBuilder.SetChannelId(NOTIFICATION_CHANNEL_ID);
NotificationCompat.Builder does not contain a definition for SetChannelId.

Ответить