Mastering .NET MAUI APIs: Building a .NET MAUI Weather App

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ม.ค. 2025

ความคิดเห็น • 49

  • @CodingDroplets
    @CodingDroplets  ปีที่แล้ว +2

    ⭐ Join Us on Patreon: www.patreon.com/CodingDroplets
    WeatherStack Website: bit.ly/weatherstack-cd
    DotNet MAUI Tutorial Series: th-cam.com/video/O3-jFuXqASE/w-d-xo.html&pp=sAQB

    • @Rizzwan7
      @Rizzwan7 10 หลายเดือนก่อน

      BindingContext should be added in WeatherInfopage.cs. I think its cut duration the editing video.

  • @beelzaBob
    @beelzaBob ปีที่แล้ว +1

    Great tutorial! I've searched high and low for a tutorial showing Maui API code, and this is the only one I found, and -- lo and behold -- it's very well done. The mark of a true teacher is making complicated concepts nice and simple, and your example was intellectually engaging (who doesn't like weather data?).

    • @CodingDroplets
      @CodingDroplets  ปีที่แล้ว

      Thank you so much for your kind words! I'm delighted to hear that you found the tutorial helpful.

  • @shaileshpandey6214
    @shaileshpandey6214 ปีที่แล้ว +4

    Great video , Its really very much informative.
    1. Best practices, how to use actually MVVM pattern
    2. How we can use it as like in production code. (Internet connection wirking or not)
    Separation of concerns very clear and clean.
    Thank you. 😊

    • @CodingDroplets
      @CodingDroplets  ปีที่แล้ว +1

      Thank you so much for your wonderful comment! We're glad to hear that you found the video informative and helpful. 🎉

  • @crispuskinyanjui5376
    @crispuskinyanjui5376 ปีที่แล้ว +1

    Awesome tutorial series, never felt better

    • @CodingDroplets
      @CodingDroplets  ปีที่แล้ว

      Thank you so much for your fantastic comment! We're glad to hear that you enjoyed the tutorials and had a great experience following along with them. 🎉

  • @曼巴-z1t
    @曼巴-z1t 10 หลายเดือนก่อน +1

    Great tutorial,thank you teacher!

  • @RaffaelePicarella-l1x
    @RaffaelePicarella-l1x 2 หลายเดือนก่อน +1

    you need to add binding context to view model in cs file WeatherInfoPage

    • @CodingDroplets
      @CodingDroplets  2 หลายเดือนก่อน +1

      Great catch! 😊 In this video, I focused on the basics, but for a more structured approach using MVVM, I've covered it in detail in a previous video. You can check it out here: th-cam.com/video/B-5e0PJtSDs/w-d-xo.html

    • @RaffaelePicarella-l1x
      @RaffaelePicarella-l1x 2 หลายเดือนก่อน +1

      @@CodingDroplets thanks your videos are always very interesting congratulations

    • @CodingDroplets
      @CodingDroplets  2 หลายเดือนก่อน +1

      You are most welcome! Thank You for your feedback.

  • @crispuskinyanjui5376
    @crispuskinyanjui5376 ปีที่แล้ว +1

    @CodingDroplets From this series can you add a video of working with the shell as you had mentioned when working with page layout.

    • @CodingDroplets
      @CodingDroplets  ปีที่แล้ว +1

      Thank you for watching tutorial series and for your suggestion! We really appreciate your feedback. We'll be adding a video that covers working with the Shell in one of our upcoming tutorials.

  • @ymtan
    @ymtan ปีที่แล้ว +1

    Hello Coding Droplets, could you kindly please explain why we need to use the JsonPropertyName() attribute for each property inside WeatherApiResponse class because I don't really understand the purpose of using Json property name attibute ??

    • @CodingDroplets
      @CodingDroplets  ปีที่แล้ว +2

      Hello! Thank you for your question, and I'm glad you're finding the tutorial helpful!
      The JsonPropertyName() attribute is used to specify the name of the property when serializing and deserializing JSON data. In some scenarios, the property names in your C# class might not match the property names in the JSON data you are sending or receiving from an API. In such cases, you can use the JsonPropertyName() attribute to explicitly map the C# property to the corresponding JSON property.
      In the video, I just need to change the property names in the C# class. But while serializing and deserializing the application should use the actual name mentioned in the JSON content.

  • @klondikexx2831
    @klondikexx2831 ปีที่แล้ว +1

    This was great. Only improvement could be how to enable unencrypted API calls for a specific API, instead of giving permision in the Android manifest file

    • @CodingDroplets
      @CodingDroplets  ปีที่แล้ว

      Thank you for your positive feedback! I appreciate your suggestion for improvement.

  • @vvp6552
    @vvp6552 หลายเดือนก่อน +1

    Well done ! Great job. Can someone give information can maui devs find a work ? In my country (Uzb) believe me none person who writes mobile apps in maui.

    • @CodingDroplets
      @CodingDroplets  หลายเดือนก่อน

      Thank you for your kind words! 😊 Regarding your question, .NET MAUI is gaining traction globally, and while it may not yet be widely adopted in every country, it’s growing in demand as more companies see the value of building cross-platform apps with a single codebase. For developers in regions where MAUI isn't widely used yet, it can be an excellent opportunity to stand out as an early expert. You could also look for remote opportunities, as many companies worldwide are embracing MAUI for cross-platform development. Wishing you the best in your career journey! 🚀

  • @programmmerr
    @programmmerr ปีที่แล้ว +1

    Hello nice tutorial. Why the button doesn't fetch anything. I have done with binding

    • @CodingDroplets
      @CodingDroplets  ปีที่แล้ว

      Thank you for watching the tutorial and trying out the code! To troubleshoot the issue with the button not fetching anything, please confirm if the bindings are done correctly.
      In this particular video, I focused on demonstrating the API integration in a .NET MAUI application without delving much into the MVVM pattern and data binding, as these topics were covered in detail in the previous video (th-cam.com/video/B-5e0PJtSDs/w-d-xo.html).
      If the button is not fetching anything, it's possible that there might be a small issue with the binding or some other part of the code. You can find the source code in the below github repository.
      github.com/codingdroplets/MauiWeatherApp

    • @seanbutterworth
      @seanbutterworth ปีที่แล้ว +5

      I had the same issue and after watching other videos I figured out I had to add the line: BindingContext = new WeatherInfoPageViewModel(); in the constructor for WeatherInfoPage()

  • @artemky3bmu45
    @artemky3bmu45 9 หลายเดือนก่อน +1

    Thank you so much for the video.
    But since I don't need a paid subscription to the site you suggested, I couldn't follow the lesson further.

    • @CodingDroplets
      @CodingDroplets  9 หลายเดือนก่อน

      Thank you for watching the video! I'm glad you found it helpful. Just to clarify, you don't need a paid subscription to test the API method demonstrated in the tutorial. The API used in the video is typically available for free.

  • @crispuskinyanjui5376
    @crispuskinyanjui5376 ปีที่แล้ว +1

    Cant wait for more

    • @CodingDroplets
      @CodingDroplets  ปีที่แล้ว

      Thank You! Your support and encouragement motivate us to keep creating valuable content for our viewers.

  • @vijaymani6552
    @vijaymani6552 ปีที่แล้ว +1

    Great 👍

    • @CodingDroplets
      @CodingDroplets  ปีที่แล้ว

      Thank you for watching the video! Glad to hear that.

  • @ahmadfaraz3678
    @ahmadfaraz3678 11 หลายเดือนก่อน +1

    How to create error interceptor in Maui?

    • @CodingDroplets
      @CodingDroplets  11 หลายเดือนก่อน

      Thank you for your suggestion! Creating an error interceptor in .NET MAUI is indeed a valuable topic to cover. I'll definitely consider making a video tutorial on this subject in the near future. Stay tuned for updates!

  • @曼巴-z1t
    @曼巴-z1t 9 หลายเดือนก่อน +1

    Why did pressing the fetch button not respond?

    • @CodingDroplets
      @CodingDroplets  9 หลายเดือนก่อน +1

      Thank you for your comment! It could be due to various reasons such as event handling, data binding, or network connectivity.
      I recommend reviewing the source code available at this link (github.com/codingdroplets/MauiWeatherApp) to compare it with your implementation and identify any discrepancies.

    • @曼巴-z1t
      @曼巴-z1t 9 หลายเดือนก่อน

      Great,thanks! Turns out it was missed BindingContext = new WeatherInfoPageViewModel();

  • @hyperdrivekpm221
    @hyperdrivekpm221 10 หลายเดือนก่อน +1

    No response when I click the fetch button

    • @CodingDroplets
      @CodingDroplets  10 หลายเดือนก่อน +1

      It seems like there might be an issue with the code. I recommend verifying the code implementation to ensure everything is set up correctly. You can access the source code for the project on GitHub at github.com/codingdroplets/MauiWeatherApp

    • @hyperdrivekpm221
      @hyperdrivekpm221 10 หลายเดือนก่อน +2

      Sorry for the late update it was the binding thank you for the tutorials 👍🏽👍🏽👍🏽

  • @robertlamberson4186
    @robertlamberson4186 10 หลายเดือนก่อน +1

    I am just learning the MVVM structure. I have copied the weather App faithfully from the tutorial, but am getting 9 errors for the variables in WeatherApiResponseLocation class, and cannot see what I am missing. Any help would be appreciated.
    "Severity Code Description Project File Line Suppression State Details
    Error CS1061 'WeatherApiResponseRequest' does not contain a definition for 'WeatherIcons' and no accessible extension method 'WeatherIcons' accepting a first argument of type 'WeatherApiResponseRequest' could be found (are you missing a using directive or an assembly reference?) MauiWeatherApp (net8.0-android), MauiWeatherApp (net8.0-ios), MauiWeatherApp (net8.0-maccatalyst), MauiWeatherApp (net8.0-windows10.0.19041.0) C:\Users\bobla\source
    epos\MauiWeatherApp\MauiWeatherApp\Models\ViewModels\WeatherInfoPageViewModel.cs" 56 Active

    • @CodingDroplets
      @CodingDroplets  10 หลายเดือนก่อน

      It sounds like there might be an issue with the definition or inclusion of the 'WeatherIcons' property. Could you please double-check to ensure that you've added this property correctly as a string array?

    • @Rizzwan7
      @Rizzwan7 10 หลายเดือนก่อน

      BindingContext should be added in WeatherInfopage.cs. I think its cut duration the editing video.

  • @S_Crypto
    @S_Crypto 9 หลายเดือนก่อน

    Coding Balls 👌👌

  • @shaileshpandey6214
    @shaileshpandey6214 ปีที่แล้ว +1

    Please make a video, how can we run an app on localhost.

    • @CodingDroplets
      @CodingDroplets  ปีที่แล้ว

      We appreciate your interest in learning more about .NET MAUI.
      Just to clarify, when you mentioned running the app on localhost, did you mean hosting the API in your local machine for testing and development purposes?

    • @shaileshpandey6214
      @shaileshpandey6214 ปีที่แล้ว

      @@CodingDroplets Yes.
      I want for testing and development purpose.
      Suppose if I am using it for production (small scale approx 20 user) using ngrok then any problem.?

    • @shaileshpandey6214
      @shaileshpandey6214 ปีที่แล้ว

      I want to one suggestion with you.
      My case is that
      There is One enterprise sql server database which is local database (On premises) and user want to access some reports on Android app and some approval transaction, on that situation suppose, if I am localhost url make a public in anyways then it can be possible or any otherway also to do this. ?

  • @曼巴-z1t
    @曼巴-z1t 9 หลายเดือนก่อน

    Why did the program I followed enter report an error? XFC0000 Cannot resolve type "clr-namespace: MauiWeatherApp.Models.ViewModels:vm:WeatherInfoPageViewModel" ,code is:

    • @曼巴-z1t
      @曼巴-z1t 9 หลายเดือนก่อน

      Space reason