Тёмный

REACT NATIVE PUSH NOTIFICATION ANDROID WITH REACT NATIVE FIREBASE AND NOTIFEE 

JAS ACADAMY
Подписаться 2 тыс.
Просмотров 14 тыс.
50% 1

Relevant push notifications are a great way to boost a user's engagement towards an application. According to some analysis, push notifications increase app engagement by 88%. It’s also curious to see that the click-through rate for push notifications in Android (4.06%) is much higher than in iOS (1.7%).
In this tutorial, you are going to learn how to implement push notifications as an app feature using React Native and Firebase. We will be testing out the notification feature on an Android device, but you can go ahead and try it out on iOS yourself.
There are two main ways you can send push notifications to your app users: local and remote. Local notifications are sent from a React Native application, while remote push notifications are sent from the server or a push notification service such as Firebase Cloud Messaging service (FCM). We will explore both approaches.
Create React Native app
reactnative.dev/docs/environm...
npx react-native init Project-name
React Native Firebase
React Native Firebase is the officially recommended collection of packages that brings React Native support for all Firebase services on both Android and iOS apps.
Install the React Native Firebase "app" module to the root of your React Native project with NPM or Yarn:
Using npm
npm install --save @react-native-firebase/app
Using Yarn
yarn add @react-native-firebase/app
rnfirebase.io/
Generating Android credentials
On the Firebase console, add a new Android application and enter your projects details. The "Android package name" must match your local projects package name which can be found inside of the manifest tag within the /android/app/src/main/AndroidManifest.xml file within your project.
Notifee
Notifee is a local notifications library and does not integrate with any 3rd party messaging services. This provides developers greater flexibility on how notifications are managed and integrated with new and existing applications.
The library is a successor to the notifications module in React Native Firebase v5. The entire library has been reworked from the ground up focusing on new features, testing, documentation and device compatibility.
notifee.app/
Send Notification to React Native App using Firebase Cloud Messaging
Firebase Cloud Messaging is a cross-platform cloud solution for messages and notifications for Android, iOS, and web applications, which is available for free. Using Firebase Cloud Messaging(FCM), we can easily notify a client app about new updates or can send offers or exiting messages to keep them engaged. FCM is the best way to drive user re-engagement and retention. We can also use FCM for the instant messaging(Chat app) as a message can transfer a payload of up to 4KB to a client app.
aboutreact.com/react-native-f...
Test FCM Notification with POSTMAN
You have to copy Legacy Server Key from Firebase Console
Note: Firebase has upgraded our server keys to a new version. You may continue to use your Legacy server key, but it is recommended that you upgrade to the newest version.
/ test-fcm-notification-...
/ react-native-push-noti...
Notifee build issue
docs.workwithplus.com/com.wik...,
push notification,push notifications,ios push notification,ios push notifications,phone notifications,iphone notifications,push notification service,iphone push notifications,notifications,push notification strategy,cell phone notification,desktop notifications,push notification server,notification app,android push notifications,android notifications,apple push notification service,implementation,push app,push alerts,push message,push messages,react native firebase,react native firebase ios,react-native-firebase,react native firebase android,react native firebase install,react native firebase tutorial,react native ui,react native app,react native ui design,react native firebase install ios,react native code,react native project,react native,react native project setup,react native login,react native tutorial,react native firebase authentication,react native firebase install android,react native push notification,react native push notifications,react native push notification ios,react native local push notifications,react native notifications,react native firebase push notification,react native push notification firebase,react native scheduled push notifications,react native local notifications,react native scheduled notifications,firebase push notification,react native schedule local notification,react native notifications firebase,notifee,notification,react native notifee,notifee notification,nodejs,notifee push notification
#pushnotifcation #android #reactnative #notification

Опубликовано:

 

10 янв 2022

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 26   
@zikadabalada10
@zikadabalada10 Год назад
You saved me! It was sending notifications with expo, but on android 12 and 13, it didn't show the notification. With the switch from direct pointing to FCM, it worked great! Thanks!
@JASACADAMY
@JASACADAMY Год назад
Thanks for sharing
@areebchoudhary3785
@areebchoudhary3785 Год назад
sometimes video paused but audios remains play, Overall the tutorial was so good especially the way you resolved the issues side by side, Love from Pakistan Brother ❤🤍💚 keep it up👍
@JASACADAMY
@JASACADAMY Год назад
thanks for feedback 👍
@vejaay
@vejaay 6 месяцев назад
Thank u so much dear. Very clear and got complete idea about it. Thank u vey much. We will meet for beer.
@JASACADAMY
@JASACADAMY 6 месяцев назад
Always welcome
@anupsinghrana5735
@anupsinghrana5735 2 года назад
good work but sometimes your screen is stuck, Please use a good screen recorder and keep it up this series
@JASACADAMY
@JASACADAMY 2 года назад
sure.thanks for your feedback.we will take care this
@mohdnishad5457
@mohdnishad5457 2 года назад
Any was to get the source code for a deep look brother.. Between you did a great job, keep it up..
@adigunmiracle9451
@adigunmiracle9451 Год назад
Well done sir, please can you show how I can handle when notifications is clicked to navigate through screens.
@JASACADAMY
@JASACADAMY Год назад
use navigation reference
@markbarlescu1853
@markbarlescu1853 2 года назад
ty sir.
@boddojupriyanka881
@boddojupriyanka881 Год назад
I'm not able to get the fcm token, it's throwing an error as service not available
@JASACADAMY
@JASACADAMY Год назад
check the integration and firebase console setup
@andriwconde
@andriwconde Год назад
why you install firebase ? you can do it without firebase?
@hakanolgun6199
@hakanolgun6199 2 года назад
After i install firebase and notifee and did configurations as you describe; My android build is succesfull but i'm getting error: Notifee native module not found. I cannot open my app on the android emulator. How to solve that error?
@JASACADAMY
@JASACADAMY 2 года назад
have you install notifee library separately
@hakanolgun6199
@hakanolgun6199 2 года назад
@@JASACADAMY Thank you for quick reply. I installed notifee as you say in the video, like in notifee web page with this command: npm install --save @notifee/react-native. in my package.json file i have: ""@notifee/react-native": "^5.3.0"," Should i install another notifee package from somewhere?
@JASACADAMY
@JASACADAMY 2 года назад
@@hakanolgun6199 no try to reinstall the project once more
@chandraroy2481
@chandraroy2481 2 года назад
sir your recorder is not code
@sysquareexecutive1119
@sysquareexecutive1119 2 года назад
Good work but your video is stuck in end part of video.
@JASACADAMY
@JASACADAMY 2 года назад
it working.check once more
@alexzil2142
@alexzil2142 2 года назад
Do for expo projects
@JASACADAMY
@JASACADAMY 2 года назад
sure will do.thanks for feedback
@firstfacts99
@firstfacts99 2 года назад
Content is great , bad video , its stucking everywhere
@JASACADAMY
@JASACADAMY 2 года назад
thanks for feedback 👍
Далее
Firebase Cloud Messaging API (v1) Tutorial
9:13
Просмотров 65 тыс.
D3 BMW XM LABEL Король.
31:52
Просмотров 857 тыс.
The real reasons Apple won’t put macOS on the iPad
15:26
React Native Local Push Notifications Tutorial
10:14
Просмотров 126 тыс.
Push Notifications for a Chat App with React Native 🔴
2:46:39
D3 BMW XM LABEL Король.
31:52
Просмотров 857 тыс.