Skip to main content

Posts

Test FCM Notification with POSTMAN! - (Android - iOS)

  Test FCM Notification with POSTMAN! FCM (Firebase Cloud Messaging) + POSTMAN — Send Notification Like Pro. Hello there, I am here with my new and useful article and I am willing to share my problems and their solutions. Recently, I am developing one application that has the functionality of Push Notification, I used to with   Firebase Cloud Messaging , Hope you also use this awesome feature of Firebase. I face one problem during the development of this functionality and the scenario is like:  Whenever any user from insert or update data on the website then I have to show notification in Android App, but still that module is under development from the web. So QUESTION is HOW I can Test this Notification functionality like PRO!. Create an FCM Token (Android): You can put these lines in your  MainActivity.java FirebaseInstanceId. getInstance ().getInstanceId().addOnSuccessListener( this , instanceIdResult -> { String newToken = instanceIdResult.getToken(); Lo...

Receiving push notification from Firebase in React Native

Receiving push notification from Firebase in React Native Registering the app To use the FCM, we must create a new Firebase project or use an existing one. Creating a new Firebase project is done by navigating to the  Firebase Console . click on Create project. Registering a new Android app React Native Firebase To connect our  React Native app  to the apps created in the Firebase console, a couple of steps are required. Let’s say we already have our React Native app created. All that we’re missing now are the libraries which we’ll use to implement push notifications. The first thing to do is to add the required Firebase libraries to the project: yarn add react-native-push-notification yarn add @react -native-community/push-notification-ios yarn add @react -native-firebase/app yarn add @react -native-firebase/messaging Once the Firebase libraries have been added, we need to do a bit more setup to be able to successfully receive push notifications on both Android and iOS d...

Video Streaming in Your React Native App

Video Streaming in Your React Native App Photo by  Zach Meaney  on  Unsplash I have recently been working with the  react-native-video  library to integrate videos within the app. I must say, this is a very impressive library from the react native community with lots of contributors and users. Key Features Some of the key features of this library include: Local and remote files playback support. Selection of audio and text tracks with captions. Configurable rate (increase or decrease speed of video). Audio playback when the app is running in the background. External playback. And ofcourse support for both iOS and Android devices. These features make this library a solid pick for video streaming in react native apps. Setup The setup for both iOS and Android is quite simple. Run the following command to install the react-native-video package npm install --save react-native-video Link react-native-video library with both the iOS and Android dependencies react-nativ...