How to connect to local network first instead of internet in C# Xamarin Android app?

前端 未结 3 1076
感情败类
感情败类 2020-12-07 05:53

I have a Xamarin Android app. It connects to a “No Internet based Wifi router” for some IOT devices. But it also needs to use mobile’s cellular data for storing some informa

3条回答
  •  情歌与酒
    2020-12-07 06:14

    Use Plugin.Essentials ( require a NetStandard project) and refer to this link :

    https://docs.microsoft.com/en-us/xamarin/essentials/connectivity?tabs=android

    try local access and not network.

提交回复
热议问题