Replies: 8 comments
-
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? |
Beta Was this translation helpful? Give feedback.
-
you should check react-native-firebase for this |
Beta Was this translation helpful? Give feedback.
-
@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, |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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 ***@***.***> 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
<#114 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ALov_8Udc5aRMnUq-rDZsnm7y2QDoSApks5vboh7gaJpZM4cS7cE>
.
|
Beta Was this translation helpful? Give feedback.
-
@gzzo Feel free to open a PR on push-notification-ios |
Beta Was this translation helpful? Give feedback.
-
Hey, I am working on a React Native mobile app, and I want to integrate Firebase into my code. I am able to get the FCM token on an Android device, but I am unable to get the FCM token on an iOS device. Can you please help me? Here are my Podfile, AppDelegate.mm file, and AppDelegate.h file. Please check and provide me with a better solution as soon as possible. : AppDelegate.mm** :: @implementation AppDelegate
**************podfile : ************** Resolve react_native_pods.rb with node to allow for hoistingrequire Pod::Executable.execute_command('node', ['-p', platform :ios, min_ios_version_supported $RNFirebaseAsStaticFramework = true pod 'Firebase', :modular_headers => true end target 'crc_app' do use_react_native!( target 'crc_appTests' do post_install do |installer| @interface AppDelegate : RCTAppDelegate |
Beta Was this translation helpful? Give feedback.
-
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:
Beta Was this translation helpful? Give feedback.
All reactions