[Question] GetFileAsync fails on iOS with unknown error
See original GitHub issuePlease fill in the following fields:
- Unity editor version: 2022.1.8f1
- Firebase Unity SDK version: 8.10.1
- Source you installed the SDK: .tgz from https://developers.google.com/unity/archive#play_asset_delivery
- Problematic Firebase Component: storage
- Other Firebase Components in use: analytics, app, auth, crashlytics, dynamic-links, firestore, functions, remote-config
- Additional SDKs you are using: Facebook
- Platform you are using the Unity editor on: Windows
- Platform you are targeting: iOS
- Scripting Runtime: IL2CPP
Please describe the issue here:
We are trying to load file from Firebase storage using code:
var storageReference = storage.GetReferenceFromUrl(url)
storageReference .GetFileAsync()
We are using the same code on Windows, Android without any problems.
On iOS, however, the same logic fails with error:
An unknown error occurred, error code: 13000, httpResultCode: 300
The exception is not the informative in that case.
Any ideas why this is happening only on iOS, and what we can do to fix that issue?
Issue Analytics
- State:
- Created a year ago
- Comments:16 (4 by maintainers)
Top Results From Across the Web
GetFileAsync not working downloading from storage in ...
To download the files I am using GetFileAsync to persistentDataPath and it downloads but when it is supposed to be finished an error...
Read more >Firebase Storage GetFileAsync works on every platform ...
We're using Firebase to store asset bundles which is then pulled down when the add needs them using Storage's GetFileAsync() method.
Read more >iOS update and restore errors
If your device couldn't be restored and you get a message that "an unknown error occurred [error number]," use these steps.
Read more >Unity iOS build in Xcode cannot write downloaded images ...
When we build the Unity app for iOS, it gave errors when it tries to download the images from the Firebase Storage. I...
Read more >Untitled
Vbscript split file into lines, Copy contacts from macbook to iphone 5, Top 10 greatest ... Pure f1 engine sound mp3, Failure hot...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The issue still persists, but we just stopped using
GetFileAsync
, and instead, we useGetDownloadUrlAsync
to fetch url, and then manually download the file toApplication.persistentDataPath
viaUnityWebRequest
Thanks for the additional input, @aixaCode. I was able to reproduce the issue, and it seems odd that this is encountered on just the iOS platform. I’ll let the team know about this, and you may refer to this thread for any updates.