You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Setup up the download manager for Android, and use the HandleDownloadFileStatusChanged event
When the status becomes "completed", check for the uri of the downloaded file by calling:
var nativeDownloadManager = (Android.App.DownloadManager)context.GetSystemService(Context.DownloadService);
var source = nativeDownloadManager.GetUriForDownloadedFile(downloadedFile.Id);
Sometimes the variable source is null
Expected behavior
Variable source should never be null
Actual behavior
According to our AppCenter logs source is sometimes null
Configuration
Platform:
iOS
Android
UWP
Other
Device:
Simulator
Real device (Xiaomi Mi 9t Pro, Android11, but lots of other devices as well, like Samsungs)
The text was updated successfully, but these errors were encountered:
This is part of the native Android implementation - please take a look at the Android documentation. Maybe the sample I wrote there is outdated and there are better ways of accessing the file - haven't used this library in a while ...
Feel free to write a pull request or any additional information which might help others to pick up on this.
Steps to reproduce
Setup up the download manager for Android, and use the HandleDownloadFileStatusChanged event
When the status becomes "completed", check for the uri of the downloaded file by calling:
Expected behavior
Variable source should never be null
Actual behavior
According to our AppCenter logs source is sometimes null
Configuration
Platform:
Device:
The text was updated successfully, but these errors were encountered: