Welcome to Our Latest Blog Post!
In this post, we will discuss push notifications—what they are, how to use them on Android and iOS, the steps involved, and the different types of push notifications. We will cover everything you need to know to implement push notifications effectively in your mobile applications.
Let’s dive in!
What is Push Notification
Push notifications are messages or alerts sent from an application to a user who has installed that app.
Push Notification Type
- Foreground notification
- Background notification
Foreground Notification
Sent to the user when the app is currently open and running
Background Notification
Sent whether or not the app is currently open
Need the Firebase library that it React-Native-firebase-library
Need some of the steps where you have to link the application to the firebase
Android: Need to download the googleservice.json file and add the file in the android/app folder
iOS: Need to download the GoogleServiceInfo.plist file and add the file in ios/application folder
Android Some of the permission need to give code need to add
then add the react-native-firebase/messaging from messaging add the code in the useEffect
need a token to get the token create one function with async await and messaging.getToken() this is how we get the token
one more thing required that is
Top comments (0)