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
{{ message }}
This repository was archived by the owner on Apr 4, 2023. It is now read-only.
.catch((errorMessage:string) =>console.log("Callable Function Error: "+errorMessage));
54
54
```
55
55
</details>
56
-
57
-
### downloadFile
58
-
As with `uploadFile` you can either pass in a full local path to a file, or (as a convenience) use the `file-system` module that comes shipped with {N} as standard.
59
-
60
-
In this example we'll download the previously uploaded file to a certain path on the local filesystem.
61
-
62
-
<details>
63
-
<summary>Native API</summary>
64
-
65
-
```js
66
-
// init the file-system module
67
-
var fs =require("tns-core-modules/file-system");
68
-
69
-
// let's first determine where we'll create the file using the 'file-system' module
70
-
var documents =fs.knownFolders.documents();
71
-
var logoPath =documents.path+"/telerik-logo-downloaded.png";
72
-
73
-
// this will create or overwrite a local file in the app's documents folder
74
-
var localLogoFile =documents.getFile("telerik-logo-downloaded.png");
75
-
76
-
// now download the file with either of the options below:
77
-
firebase.storage.downloadFile({
78
-
// optional, can also be passed during init() as 'storageBucket' param so we can cache it
79
-
bucket:'gs://n-plugin-test.appspot.com',
80
-
// the full path of an existing file in your Firebase storage
If you just want to know the remote URL of a file in remote storage so you can either share it or download the file by any other means than `downloadFile` then use this method.
120
-
121
-
In this example we'll determine the remote URL of the previously uploaded file.
122
-
123
-
<details>
124
-
<summary>Native API</summary>
125
-
126
-
```js
127
-
firebase.storage.getDownloadUrl({
128
-
// optional, can also be passed during init() as 'storageBucket' param so we can cache it
129
-
bucket:'gs://n-plugin-test.appspot.com',
130
-
// the full path of an existing file in your Firebase storage
0 commit comments