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

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

КОМЕНТАРІ •

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

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

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

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

  • @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. 🎉

  • @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.

  • @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 9 місяців тому +1

    Great tutorial,thank you teacher!

  • @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.

  • @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.

  • @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 (ua-cam.com/video/B-5e0PJtSDs/v-deo.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()

  • @RaffaelePicarella-l1x
    @RaffaelePicarella-l1x Місяць тому +1

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

    • @CodingDroplets
      @CodingDroplets  Місяць тому +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: ua-cam.com/video/B-5e0PJtSDs/v-deo.html

    • @RaffaelePicarella-l1x
      @RaffaelePicarella-l1x Місяць тому +1

      @@CodingDroplets thanks your videos are always very interesting congratulations

    • @CodingDroplets
      @CodingDroplets  Місяць тому +1

      You are most welcome! Thank You for your feedback.

  • @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.

  • @ahmadfaraz3678
    @ahmadfaraz3678 10 місяців тому +1

    How to create error interceptor in Maui?

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

      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!

  • @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.

  • @曼巴-z1t
    @曼巴-z1t 8 місяців тому +1

    Why did pressing the fetch button not respond?

    • @CodingDroplets
      @CodingDroplets  8 місяців тому +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 8 місяців тому

      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 9 місяців тому +2

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

  • @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.

  • @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 9 місяців тому

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

  • @vvp6552
    @vvp6552 24 дні тому +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  20 днів тому

      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! 🚀

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

    Great 👍

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

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

  • @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. ?

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

    Coding Balls 👌👌

  • @曼巴-z1t
    @曼巴-z1t 8 місяців тому

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