Skip to main content

Posts

Showing posts from July, 2020

Push-Notification in React-native

Implimenting Push-notification in React-native Note: To send push notification you have to implement firebase first for implementing firebase check my previour blog 1. Install Package =  @react-native-firebase/messaging, 2.FcmService.js                                                                                           import   messaging   from   '@react-native-firebase/messaging' ; import  { Platform }  from   'react-native' ; class   FCMService  {     register  = ( onRegister ,  onNotification ,  onOpenNotification )  => {         this . checkPermission ( onRegister )         this . createNotificationListeners ( onRegister ,  onNotification ,  onOpenNotification )    }     registerAppWithFCM  =  async ()  =>  {         if ( Platform . OS  ===  'ios' ){          await   messaging (). registerDeviceForRemoteMessages ();          await   messaging . setAutoInitEnabled ( true )        }           }     checkPermission  = ( onRegister )  =>  {       

Implement Firebase in React-Native

Welcome to React Native Firebase! To get started, you must first setup a Firebase project and install the "app" module. I  Installation Installing React Native Firebase requires a few steps; installing the NPM module, adding the Firebase config files & rebuilding your application. 1. Install via NPM 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 The  @react-native-firebase/app  module must be installed before using any other Firebase service. 2. Android Setup To allow the Android app to securely connect to your Firebase project, a configuration file must be downloaded and added to your project. 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 w

React Vs Angular

Javascript is one of the most popular languages among developers nowadays. There are a lot of developers, freshers and experienced love to build their application or project using  Javascript  but still there is a confusion when they have to pick up right framework or library for their project. Angular and ReactJs  is their topmost priority but still, most of them are unable to decide which one would be good for their project. Freshers want to know which one is easy to learn and which one has more demand in the market for job purpose. AngularJS was developed by Google and was initially released in 2010. Until 2016 it used to be called as  AngularJS . In 2016 Angular team released  AngularJS 2  which was a complete rewrite of  AngularJS  and it was actually a completely new framework, so to reduce confusion from previous one, the angular team decided to drop JS from the original name and they called this new framework Angular. React is developed and maintained by Facebook. It was releas