Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
884 views
in Technique[技术] by (71.8m points)

xamarin.forms - Background internet connection on Android with Xamarin

I have a Xamarin.forms application that needs to connect to the internet, as in mobile data, while it is in the background, which my application is apparently not able to do when you look at the logs I receive when I run it on an Android phone.

I know android has this thing where apps are not allowed to use mobile data when in data saver mode, which my phone is not, but I still enabled the option so that it still should be able to connect, but I still get an error when trying to connect.

I am using shiny and geofencing for the backgrounding i'm doing, and that part is working fine on iOS and also on android when connected to wifi, so the only issue is the app won't connect to the mobile network.

So if anyone has any information about this problem and how to fix it, it would be greatly appreciated.

question from:https://stackoverflow.com/questions/65950978/background-internet-connection-on-android-with-xamarin

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...