Implement Push Notification In .NET MAUI Part-2 (iOS)

Поділитися
Вставка
  • Опубліковано 19 вер 2024

КОМЕНТАРІ • 51

  • @davidbrenchley
    @davidbrenchley Рік тому +1

    Thank you for the video. Please increase the size of your text on future videos. It's very hard to see when watching on phone or tv.

  • @twannie1983
    @twannie1983 7 місяців тому

    This works really great and very easy setup! Keep up the good work!

  • @kb5140
    @kb5140 Рік тому +1

    Great video :). Its exactly what i needed, keep up the good work man

  • @luigyavila7985
    @luigyavila7985 Рік тому +1

    Thank you for your videos, they are great and they have helped me a lot. I have a question in the info.plist file. The Capabilities option to do Enabling Background Mode does not appear. What is this due to? thank you.

    • @ProgrammingWithPragnesh
      @ProgrammingWithPragnesh  Рік тому

      HI, Can you try to open Info.plist file as Generic Plist Editor & Add Required background modes there manually like I shown in this image : drive.google.com/file/d/1OfLxdlbOOKE8IbhBtfDKeKfeBB7jJFoX/view?usp=share_link

  • @giovanninovati6024
    @giovanninovati6024 Рік тому +2

    Hi, thank you for all of your videos. I have one problem, hope you can help me out with that. When i try accessing Messaging.SharedInstance, i get "'Object reference not set to an instance of an object'". Any ideas of what could have gone wrong?

    • @TheBelesse
      @TheBelesse Рік тому

      Hi, i have the same problem, have you found a solution since?

  • @jaymodi136
    @jaymodi136 4 місяці тому

    How can i load the image in notification particularly for ios, i passed the imageurl in notification payload but now i do not understand how can i show that image in notification

  • @TheRaajwant
    @TheRaajwant Рік тому

    Hi Pragnesh, great video. After suggested Android changes, my FirebaseService is called when project (and even the app on phone) runs the second time (First time being installation and first run). Can you please help, I want to run it first time of app run.

  • @buckobuchanan
    @buckobuchanan 11 місяців тому +1

    Thanks for this. I am having a problem with WillPresentNotification not being called. I have made a new test app and it works fine but not in my main app. I can't see what I have missed. Any ideas?

    • @Spud9
      @Spud9 9 місяців тому

      I've found a solution.

    • @thiagoschmitz6286
      @thiagoschmitz6286 7 місяців тому

      @@Spud9 Could you share? I'm facing this issue too

    • @Spud9
      @Spud9 7 місяців тому

      @@thiagoschmitz6286 Rather then putting in a separate class I declared the overrides in the AppDeligate directly.

  • @Nahuel-223
    @Nahuel-223 Рік тому

    i dont receive notifications in the iphone simulator, why??????

  • @Shoyer01
    @Shoyer01 9 місяців тому

    Thanks!

  • @askalt819
    @askalt819 Рік тому +1

    16:40 I get Error message when instale nuget " Could not find a part of the path 'C:\Users\...\.nuget\packages\xamarin.firebase.ios.installations\...\FirebaseInstallations-umbrella.h'." What can i do with that?

    • @ProgrammingWithPragnesh
      @ProgrammingWithPragnesh  Рік тому

      Hi, you might need to enable long path for windows , or you can save nuget package in some outer directory.
      github.com/mistrypragnesh40/PushNotificationDemoMAUI/issues/3

    • @alexivanov4269
      @alexivanov4269 Рік тому

      For win 7 the MAX file size is 256 chars. You can do nothing because the Firebase headers .h paths can be up to 267 symbols. (if you rename the directory to just one char like c:\
      it does not help. For lucky win10 owners the max path of 260 can be extended in the registry.

    • @masonwray7830
      @masonwray7830 Рік тому

      @@ProgrammingWithPragnesh Thanks for the video, this is the closest I've come to getting push notifications to work in MAUI. I've tried both of those options with no success. Just out of curiosity, how many chars is your C:\Users\username segment of your NuGet cache path?

  • @suhasmr2418
    @suhasmr2418 Рік тому

    Hi, thank you for the videos on implementing push notifications for different platforms in .NET MAUI. Followed your video along and tried to implement the same but getting a error "Object reference not set to instance of an object" while running it for a physical device[in my case its Ipad]. Also tried with the project that you have shared , getting the same error. Can you please help me out on where I could have gone wrong in the implementation?

    • @suhasmr2418
      @suhasmr2418 Рік тому +1

      Hi Pragnesh
      Still the code suggested by you for the IOS push notification is not working and above error[mentioned in the comment] is appearing on the IOS devices. On the simulator, the custom method that you have written in AppDelegate [ DidReceiveRegistrationToken] is not being hit when I try to debug the application and hence without the reg token it is unable to test whether push notification is working or not for IOS platform. Any suggestions on how to fix this issue?

    • @ProgrammingWithPragnesh
      @ProgrammingWithPragnesh  Рік тому

      I will check that.

    • @muks8398
      @muks8398 10 місяців тому

      @@ProgrammingWithPragnesh Same here , i am able to get the device token etc, but it doesn't hit my WillPresentNotification breakpoint. Please help. i am testing on a real device.

    • @muks8398
      @muks8398 10 місяців тому

      None of the methods in UserNotificationCenterDelegate are being hit.

  • @EricKaleida
    @EricKaleida 9 місяців тому

    I have successfully implemented for Android but am having issue where the notification is not received by iOS simulator. Double-checked my settings in Apple Developer and Firebase. Anyone have any tips on debugging to see where the message is failing? Have read some debug tips related to sending message through APNS to debug.

    • @EricKaleida
      @EricKaleida 8 місяців тому

      I have found that the emulator for Android would receive the push notification, but not the emulator for iOS when I was paired with a Mac through Visual Studio. When I ran the app on an iPhone connected to the paired Mac, I was able to receive the push notification. This resolves the issue for me.

  • @Spud9
    @Spud9 9 місяців тому

    Please help, I've followed the tutorial exactly and am getting the notifications to come through but the functions in the extension class UserNotificationCenterDelegate aren't getting called.

    • @Spud9
      @Spud9 9 місяців тому

      I've found a solution.

    • @EmirhanYüksektepe
      @EmirhanYüksektepe 8 місяців тому

      @@Spud9 What is the solution? I have the same problem.

    • @Spud9
      @Spud9 7 місяців тому

      @@EmirhanYüksektepe Put the overrides in the app delegate directly.

    • @thiagoschmitz6286
      @thiagoschmitz6286 7 місяців тому

      @@Spud9Hi, could you share the solution?

  • @MARCIANOMOREIRADEQUEIROZ
    @MARCIANOMOREIRADEQUEIROZ Рік тому

    Hello, I'm trying to implement the Plugin using Visual Studio 2022 for Mac. However, when I install the Nuget package Xamarin.Firebase.iOS.CloudMessaging, I get an error on compilation:
    GAM-8.9.1/GoogleAppMeasurement-8.9.1/Frameworks/GoogleAppMeasurement.xcframework has an incorrect or unknown format and cannot be processed
    Is there any way to fix this?
    Or, is there any alternative to this nuget package?
    I've already searched but I haven't found anyone who could solve this problem.

    • @ProgrammingWithPragnesh
      @ProgrammingWithPragnesh  Рік тому

      Sorry, i dont know about this , i need to chdck

    • @MARCIANOMOREIRADEQUEIROZ
      @MARCIANOMOREIRADEQUEIROZ Рік тому

      Thanks for answering.
      Accidentally, I managed to get around the problem.
      I compiled the project for MacCatalyst, and it worked.
      After that, I can compile without problem for iOS.
      Looks like the compiler fixed it by itself.

  • @EmirhanYüksektepe
    @EmirhanYüksektepe 8 місяців тому +1

    Hello. I did everything and the request returns correctly, but there are no notifications on my iOS phone. I also tried it from the Firebase console screen and there was no notification on the phone. I can receive DeviceToken successfully. Can you help me please

    • @PavelKonoshchenko
      @PavelKonoshchenko 8 місяців тому +1

      I have the same. Got the token. Allowed permissions. But cannot get the push when sending the message from Firebase console. Have you found the problem? Can you please help me also if you know how to solve it. thank you,!

    • @EmirhanYüksektepe
      @EmirhanYüksektepe 8 місяців тому +1

      @@PavelKonoshchenko Unfortunately

    • @PavelKonoshchenko
      @PavelKonoshchenko 8 місяців тому

      @@EmirhanYüksektepe I have found the probmel and now its working. do you need help?

    • @prateekp12
      @prateekp12 7 місяців тому

      ​@@PavelKonoshchenko I have the same problem. Can you please help me with this?

    • @PavelKonoshchenko
      @PavelKonoshchenko 7 місяців тому

      @prateekp12 I can try. Do you have the file entitlement.plist in your ios platform folder ?