FirebaseApp Class Reference

Inherits from NSObject
Declared in FirebaseApp.h

Overview

All Firebase references to the same database share a connection, persistent cache, etc. FirebaseApp represents this shared state and can be accessed from any reference via its app property. It has methods for managing your Firebase connection, etc.

There is a one-to-one relationship between a FirebaseApp instance and a connection to a Firebase database.

– purgeOutstandingWrites

The Firebase client automatically queues writes and sends them to the server at the earliest opportunity, depending on network connectivity. In some cases (e.g. offline usage) there may be a large number of writes waiting to be sent. Calling this method will purge all outstanding writes so they are abandoned.

- (void)purgeOutstandingWrites

Discussion

The Firebase client automatically queues writes and sends them to the server at the earliest opportunity, depending on network connectivity. In some cases (e.g. offline usage) there may be a large number of writes waiting to be sent. Calling this method will purge all outstanding writes so they are abandoned.

All writes will be purged, including transactions and {@link Firebase#onDisconnect} writes. The writes will be rolled back locally, perhaps triggering events for affected event listeners, and the client will not (re-)send them to the Firebase server.

Declared In

FirebaseApp.h

– goOffline

Shuts down our connection to the Firebase server until goOnline is called.

- (void)goOffline

Discussion

Shuts down our connection to the Firebase server until goOnline is called.

Declared In

FirebaseApp.h

– goOnline

Resumes our connection to the Firebase server after a previous goOffline call.

- (void)goOnline

Discussion

Resumes our connection to the Firebase server after a previous goOffline call.

Declared In

FirebaseApp.h