Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to React Native Firebase v6 from legacy v5 #175

Closed
emanuelb opened this issue Apr 3, 2020 · 5 comments
Closed

Migrate to React Native Firebase v6 from legacy v5 #175

emanuelb opened this issue Apr 3, 2020 · 5 comments

Comments

@emanuelb
Copy link

emanuelb commented Apr 3, 2020

The app use legacy react-native-firebase v5 at:

"react-native-firebase": "5.6.0",

The newest react-native-firebase moved to new npm package at @react-native-firebase/app
https://www.npmjs.com/package/@react-native-firebase/app

The migration require some code changes, see:
https://rnfirebase.io/migrating-to-v6

@YOEL311
Copy link
Contributor

YOEL311 commented Apr 10, 2020

as much as I know
This version (v6) does not support notifications

@emanuelb
Copy link
Author

There is support for notifications https://rnfirebase.io/messaging/notifications#main
It's also possible to use other package for notifications as well.
The v5 package require adding npx as build dependency and running jetify (making the build environment less secure by required not needed software) because it doesn't support androidx but v6 does.
invertase/react-native-firebase#1588

@YOEL311
Copy link
Contributor

YOEL311 commented Apr 22, 2020

Is it paid?
Look here
invertase/react-native-firebase#2566

@chaimPaneth
Copy link

They removed support for local notifications in v6, If you are sent a remote notification you will only see an alert in Notification Center if the app is closed otherwise the app get's notified without the alert, and you can't schedule local notifications you will have to use it with react-native-notifications or any other library out there.

@kaplanlior
Copy link
Member

As @chaimPaneth mentioned, they changed their behavior about notifications.

At the moment we'd like to keep it, so not going to upgrade to version 6 + react-native-push-notification. I'm guessing this would be reevaluated in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants