Are You Connected? Check Your App Connectivity with Xamarin.Essentials

preview_player
Показать описание
I dare to say that almost all apps will require an internet connection. Therefore, it is important to make your app robust and check if a connection is available. With Xamarin.Essentials you get all the tools that will allow you to see what connections are available and make decisions in your app based on that information.

In this video I walk you through how to set it up and use it.

🔗 Links

⏱ Timestamps
0:00 Intro
0:39 Important Note About Testing
1:18 Important Note On Different Platforms
2:06 Sample App Outline
2:33 Enable Android Permissions
3:14 Implement UI
3:57 Discovering the Connectivity API And Implement
5:57 Run the Sample App
6:16 Test No Connectivity But Also No Debugging!
7:04 Implement Detect Connectivity Changes
11:05 Run the Sample App Again
11:44 Detect Bluetooth or Other Connections
12:28 Outro

🙋‍♂️ Also find my...
Рекомендации по теме
Комментарии
Автор

great to see your consistency with videos. Keep adding more.... Cover community toolkit features like media player or video player as well.

rajeshjha
Автор

How can I check the internet on all pages of the application? Thank you for your wonderful effort

elqubed
Автор

Great video,
One question please as below,
I need to use this feature to save some data on offline mode in any temp data such as (SqlLite, etc ..), then when the device be connected these data should be moved to the SQL server (Published).
So how can I save these data in a temp place until find a connection?

yassingaming
Автор

I think you left video timestamps from your previous video 🙂

dmedo
Автор

I hope you reach your first 5K subscribers on Youtube fast.

rajeshjha
Автор

Hello Gerald, I'm trying to implement this into an MVVM pattern following the sample from our friend XamGirl. However, the events are not being triggered. I'm wondering if you have a sample or a workaround.

VictorHugo-jrqu
Автор

hello, i watched your videos and helped me a lot, thankyou for tutorials, please can you recommend books to practice xamarin forms and prism? thanks

fernandoavellaneda
Автор

hello sir I have one question can you solve this question
xamarin connection fail message (when connected wifi but can not connection in server this time how to hide server link)
i am waiting for your answer thank YOU

spdhrd
Автор

Actually there is a big problem. If emulator doesn't have any connectivity (wifi or mobile data) on, app will crash. Even if I put the check in the main activity or in the app.cs, it will continue to crash without display exception, even in the device logcat.
What am I supposed to do?

leoneguidodalzennaro
Автор

Who the hell disliked this video?? I'm calling the Police.

madraven