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
Copy file name to clipboardExpand all lines: README.md
+6-19Lines changed: 6 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -173,7 +173,9 @@ Each platform uses a different setup method after creating the project.
173
173
174
174
After creating a Firebase project, click on the [Add Firebase to your iOS app](http://d.pr/i/3sEL.png) and follow the steps from there to add the configuration file. You do _not_ need to set up a cocoapods project (this is already done through firestack). Make sure not to forget the `Copy Files` phase in iOS.
175
175
176
-
[Download the Firebase config file](https://support.google.com/firebase/answer/7015592) (this step is optional, but prevents some ugly errors in the console).
176
+
[Download the Firebase config file](https://support.google.com/firebase/answer/7015592) and place it in your app directory next to your app source code:
Once you download the configuration file, make sure you place it in the root of your Xcode project. Every different Bundle ID (aka, even different project variants needs their own configuration file).
179
181
@@ -203,33 +205,18 @@ We can pass _custom_ options by passing an object with configuration options. Th
In _most_ cases, you shouldn't need to overwrite these configuration options, but they are available to you if necessary.
230
-
231
-
**Options passed to the `Firestack` constructor take precedence over the native configuration to allow the JS to define custom variables on a per-platform basis**
232
-
233
220
## API documentation
234
221
235
222
Firestack is broken up into multiple parts, based upon the different API features that Firebase provides.
@@ -637,7 +624,7 @@ Firestack comes in with a built-in method for handling user connections. We just
637
624
firestack.presence// the presence api
638
625
.on('users/connections') // set the users/connections as the
639
626
// root for presence handling
640
-
.setOnlineFor('auser') // Set the child of auser as online
627
+
.setOnline('auser')// Set the child of auser as online
641
628
```
642
629
643
630
While the _device_ is online (the connection), the value of the child object at `users/connections/auser` will be:
0 commit comments