Background Task on Android #21408
Unanswered
marco-gemdat
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I experience a strange problem. In my app I have a background task "Task.Run()" which does some background synchronization with OneDrive using microsoft graph.
For some reason, on real android devices, the MAUI app quits without showing an exception or anything after the task has been launched after a couple of seconds. There is not even a specific line of code which got hit, the app just vanishes after a 5s sometimes after 8s, without leaving any traces. The effect is highly reproduceable in the release build when the app is executed on an android device. There is usually no problem in debug mode and also no problem when the app runs on windows.
That leads to the question: Is there a known limitation on Android when the app starts a background task? What am I missing?
Beta Was this translation helpful? Give feedback.
All reactions