Closed gzzo closed 3 years ago
We are currently extracting this functionality from React Native into https://github.com/react-native-community/react-native-push-notification-ios
Would you be able to lead the effort to bring the Android version into the react-native-community and possibly building one library to handle push notifications for both platforms?
you should check react-native-firebase for this
@sibelius I mentioned that in the issue description. I don't think RN should rely on third parties with freemium models for Android push notifications.
@cpojer So is the preferred option from my description the third one, to have a unified API, PushNotification
?
firebase is de facto solution for android push
GCM is deprecated, everything now is FCM, you can use it for free forever
Google does not have any other option
Thanks, I didn't know that. Looks like GCM will be deprecated 4/11/2019.
That means that the unified PushNotification API will only need to support FCM.
I contributed the FCM support PR for react-native-push-notification and I use it in production. Glad to belp a RNC initiative for that support.
On Fri, Mar 29, 2019 at 5:41 PM gzzo notifications@github.com wrote:
Thanks, I didn't know that. Looks like GCM will be deprecated 4/11/2019.
That means that the unified PushNotification API will only need to support FCM.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/react-native-community/discussions-and-proposals/issues/114#issuecomment-478158488, or mute the thread https://github.com/notifications/unsubscribe-auth/ALov_8Udc5aRMnUq-rDZsnm7y2QDoSApks5vboh7gaJpZM4cS7cE .
@gzzo Feel free to open a PR on push-notification-ios
Introduction
PushNotificationIOS works perfectly on iOS. React Native should support push notifications on Android as well.
The Core of It
It looks like the go-to library for Android support has been react-native-push-notification. However, it looks like that repository isn't maintained anymore and may have been abandoned.
I think it's reasonable to expect developers to want push notification support on both platforms mostly out-of-the-box without having to resort to third parties. There's several third parties with freemium react-native support (Firebase, OneSignal, Pusher).
Discussion points
Options: