I struggled a lot with simply switching the database URL within the [DEFAULT] app instance during run time.
I documented my solution in this ticket: https://github.com/invertase/react-native-firebase/issues/3049
This PR shall reflect my findings with switching app instances.
* fix(messaging,ios): keep original UNUserNotificationCenter delegate
Keeps a reference to any original UNUserNotificationCenter delegates that are set before we replace the delegate with out own implementation. Internally we will also call the original delegate if our code does not already handle the delegate call. This should keep compatibility with other RN modules that set the delegate.
* v6.4.1-alpha.0
* Revert "v6.4.1-alpha.0"
This reverts commit b355a86a
* feat: automatically register with APNs
* docs: typos
* fix: forward delegate call to FIRAuth
Fixes / supersedes #3425
* fix(messaging): add activity check to getInitialNotification (#3495)
* fix(messaging): add activity check to getInitialNotification
* fix(messaging): add activity check to getInitialNotification
* Update .spellcheck.dict.txt
Co-authored-by: Mike Diarmid <mike.diarmid@gmail.com>
Co-authored-by: Elliot Hesp <elliot.hesp@gmail.com>
* chore: upgrade testing project to RN 0.62.x
* add placeholder flow script for CI
* update jet to fix iOS issue
* revert typedoc version (latest version not working)
* add `react-native-port-patcher` back in - port still being ignored by RN so patching manually
* add `react-native-port-patcher` back in - port still being ignored by RN so patching manually
* temporarily use iphone x for detox until CI servers upgraded
* -
* Update package.json
* Update on.e2e.js
* Update orderByValue.e2e.js
* Update on.e2e.js
* Update init.js
* -
* docs: update database usage with switching database URL
I struggled a while with finding out how to switch the database URL for the [DEFAULT] firebase instance during runtime.
With version 5 it was very easy with simply passing the databaseURL to the database module.
The docs did not help unfortunately, so I tried a lot of ways which are documented in this ticket:
https://github.com/invertase/react-native-firebase/issues/3049
This PR shall help other people with the same situation too.
Furthermore, I hope to get valid feedback if the proposed implementation documented in this PR is actually correct.
* refactor: move section above firebase.json
* refactor: change section title
* refactor: remove title, fix typo
* refactor: fix typo
* refactor: feedback from review