If you are uploading from your app, it will be returned in responseContent (as shown in my guide).
Otherwise, select a file in Firebase Storage, then click on File Location, you can copy the accessToken from there. Do not revoke or Create a new token, if you want to keep the same one.
Still not able to download the file on the device using Companion. I have used the token this time.
This is the code used for uploading and downloading the files. I have used a label just to verify that the token is actually reaching the app. It's just a verification thing. And it's also working properly, I am receiving the token and also able to set it as a text for the label.
rules_version = '2';
// Craft rules based on data in your Firestore database
// allow write: if firestore.get(
// /databases/(default)/documents/users/$(request.auth.uid)).data.isAdmin;
service firebase.storage {
match /b/{bucket}/o {
match /{allPaths=**} {
allow read, write: if true;
}
}
}
OK, sorry, another question, how did you upload those files to Firebase Storage, through the AI2 app, or using the Firebase console ? (Or some other method)
and, can you view the file if you put the download url in a computer browser ?
I have just run a test, uploading and downloading files to Firebase Storage, using companion app. All working OK. This is my download url for a file called redSquare.png:
Please help, I am able to download the file by putting the link in the browser. It's working even without the token in the browser. But, the file is not getting downloaded while using the Companion.
Thanks for the code. I am able to set an Image component to the image stored in the FB. But, the only problem is that it's not getting downloaded. Probably it's a problem with Web component
No, I have not used it.
It's not needed to download the file. Right?