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. 😊
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?).
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. 🎉
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 ??
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.
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.
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
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()
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
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!
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
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.
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
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.
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
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?
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.
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! 🚀
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?
@@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.?
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. ?
Why did the program I followed enter report an error? XFC0000 Cannot resolve type "clr-namespace: MauiWeatherApp.Models.ViewModels:vm:WeatherInfoPageViewModel" ,code is:
⭐ 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
BindingContext should be added in WeatherInfopage.cs. I think its cut duration the editing video.
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. 😊
Thank you so much for your wonderful comment! We're glad to hear that you found the video informative and helpful. 🎉
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?).
Thank you so much for your kind words! I'm delighted to hear that you found the tutorial helpful.
Awesome tutorial series, never felt better
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. 🎉
Great tutorial,thank you teacher!
You are welcome!
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 ??
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.
@CodingDroplets From this series can you add a video of working with the shell as you had mentioned when working with page layout.
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.
Hello nice tutorial. Why the button doesn't fetch anything. I have done with binding
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
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()
you need to add binding context to view model in cs file WeatherInfoPage
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
@@CodingDroplets thanks your videos are always very interesting congratulations
You are most welcome! Thank You for your feedback.
Cant wait for more
Thank You! Your support and encouragement motivate us to keep creating valuable content for our viewers.
How to create error interceptor in Maui?
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!
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
Thank you for your positive feedback! I appreciate your suggestion for improvement.
Why did pressing the fetch button not respond?
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.
Great,thanks! Turns out it was missed BindingContext = new WeatherInfoPageViewModel();
No response when I click the fetch button
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
Sorry for the late update it was the binding thank you for the tutorials 👍🏽👍🏽👍🏽
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.
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.
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
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?
BindingContext should be added in WeatherInfopage.cs. I think its cut duration the editing video.
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.
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! 🚀
Great 👍
Thank you for watching the video! Glad to hear that.
Please make a video, how can we run an app on localhost.
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?
@@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.?
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. ?
Coding Balls 👌👌
Why did the program I followed enter report an error? XFC0000 Cannot resolve type "clr-namespace: MauiWeatherApp.Models.ViewModels:vm:WeatherInfoPageViewModel" ,code is:
Space reason