https://github.com/hansemannn/titanium-firebase-storage
Use the Firebase Storage SDK in the Titanium SDK 🚀
https://github.com/hansemannn/titanium-firebase-storage
appcelerator axway firebase firebase-storage titanium
Last synced: about 1 month ago
JSON representation
Use the Firebase Storage SDK in the Titanium SDK 🚀
- Host: GitHub
- URL: https://github.com/hansemannn/titanium-firebase-storage
- Owner: hansemannn
- License: other
- Created: 2017-10-15T21:41:33.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-04-09T12:21:48.000Z (about 1 year ago)
- Last Synced: 2025-03-29T01:12:01.338Z (2 months ago)
- Topics: appcelerator, axway, firebase, firebase-storage, titanium
- Language: Objective-C
- Homepage:
- Size: 8.4 MB
- Stars: 5
- Watchers: 3
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Firebase Storage - Titanium Module
Use the native Firebase SDK in Axway Titanium. This repository is part of the [Titanium Firebase](https://github.com/hansemannn/titanium-firebase) project.## Supporting this effort
The whole Firebase support in Titanium is developed and maintained by the community (`@hansemannn` and `@m1ga`). To keep
this project maintained and be able to use the latest Firebase SDK's, please see the "Sponsor" button of this repository,
thank you!## Requirements
- [x] The [Firebase Core](https://github.com/hansemannn/titanium-firebase-core) module
- [x] Titanium SDK 6.3.0+## Download
- [x] [Stable release](https://github.com/hansemannn/titanium-firebase-storage/releases)
- [x] [](http://gitt.io/component/firebase.storage)## API's
### `FirebaseStorage`
#### Methods
##### `referenceForURL(url)`
- `url` (String)
##### `referenceForPath(path)`
- `path` (String)
#### Properties##### `storageURL` (String, set)
##### `maxUploadRetryTime` (Number)
##### `maxDownloadRetryTime` (Number)
##### `maxOperationRetryTime` (Number)
### `FirebaseStorage.Reference`
#### Methods
##### `upload(parameters)`
- `parameters` (Dictionary)
- `data` (Ti.Blob | String)
- `callback` (Function)##### `download(parameters)`
- `parameters` (Dictionary)
- `maxSize` (Number)
- `callback` (Function)##### `delete(parameters)`
- `parameters` (Dictionary)
- `callback` (Function)##### `getMetadata(callback)`
- `callback` (Function)
## Example
```js
// Require the Firebase Storage module
var FirebaseStorage = require('firebase.storage');FirebaseStorage.upload({
data: myBlob,
callback: function(e) {
if (!e.success) {
Ti.API.error('Error: ' + e.error);
}
Ti.API.info('Upload completed! Download-URL: ' + e.downloadURL);
}
});
```## Build
```js
cd ios
appc ti build -p ios --build-only
```## Legal
This module is Copyright (c) 2017-Present by Appcelerator, Inc. All Rights Reserved.
Usage of this module is subject to the Terms of Service agreement with Appcelerator, Inc.