I get these two errors when trying to download a file from the Firebase Storage:
1-
WARNING: issue found in build.settings: WARNING: unrecognized key: settings.android.usesPermissions.useGoogleServicesJson (boolean)
2-
ERROR: network: network request failed: gs://myApp.appspot.com/Icon-72.png [-1002: unsupported URL]
Here is my build.settings:
android = { usesPermissions = { "android.permission.INTERNET", useGoogleServicesJson = true, }, },
Here is my code to download the file:
local urlForImage = "gs://myApp.appspot.com/Icon-72.png" network.download( urlForImage, "GET", function(e) if (e.isError == false) then local displayDownload = display.newImageRect("Icon-72.png", system.TemporaryDirectory, 50, 50 ) displayDownload.x, displayDownload.y =display.contentCenterX, display.contentCenterY+50 print("Download Succesful") end end, "Icon-72.png", system.TemporaryDirectory )
I did include the google-services.json file in the root folder.