Android Question Getting Firebase Storage to work

Brian Dean

Well-Known Member
Licensed User
Longtime User
I have been trying for several months to set up Firebase Storage using FirebaseStorage - Simple file storage backend and Integrating Firebase Services. I have not yet succeeded - in fact I am getting more and more confused. I am trying to find out what I am not doing right. This is what I think I have done . . .

- I downloaded the "Storage Example.zip" file, unzipped and opened it.
- I set up a project called "Testbed1" in my Firebase console.
- I set up three folders - auth/, public/ and user/ in my Firebase project and applied the recommended access rules.
- I downloaded the google-services.json from the project and placed it in Shared Folders. I changed the package name value to "b4a.firebase" to match the B4A Build Configuration.
- I changed the bucket name in the Storage Example B4XMainPage to match my Firebase project bucket.

I have in the past successfully got the app to open, have activated the Google Login and activated the File Download button, although I have never suceeded in retrieving a file. But now I cannot even get the app to install - I have reached the point where I am becoming lost. The app does not run and I get this in the Log file . . .
An error occurred.
Error parsing manifest script:
Error parsing google-services.json:
Error parsing manifest script:
Error parsing json file. Make sure that the package name is correct.
The manifest script is, I believe, as downloaded with the example project . . .

The package name in the build configuration is "b4a.firebase" and my json file is . . .

If anyone can see where I am going wrong and point me back towards the right road I will be very grateful. Meanwhile I am off to bed.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…