Posts

Showing posts from March, 2022

React Native push notification via admin SDK

1:first of all go to RN firebase documentation  Notifications | React Native Firebase (rnfirebase.io) 2: then  we will create our own nodejs server 3:create folder into project folder name: nodejs_stuff 4: then create file into nodejs stuff folder name:index.js 5:now open terminal and navigate to nodejs_stuff folder using this cammand cd nodejs stuff 6:now run this command into nodejs_stuff folder npm init then press Enter many times 7:now install admin sdk into nodejs_stuff folder using this commmand==>>  npm install --save firebase-admin 8:then install  express using this command  npm install express 9:now go to firebase console then settings/project settings/service accounts

Create apk file with android studio in react native

 1:First of all go to RN  official site and search publish to google playstore  2:then copy  Setting up Gradle variables  MYAPP_UPLOAD_STORE_FILE=my-upload-key.keystore MYAPP_UPLOAD_KEY_ALIAS=my-key-alias MYAPP_UPLOAD_STORE_PASSWORD=***** MYAPP_UPLOAD_KEY_PASSWORD=***** and paste into A ndroid/gradle.properties 3:then give it the name and password MYAPP_UPLOAD_STORE_FILE =mykeystore MYAPP_UPLOAD_KEY_ALIAS =key1 MYAPP_UPLOAD_STORE_PASSWORD =123456 MYAPP_UPLOAD_KEY_PASSWORD =123456 4: then add release to Android/App/build.gradle in signingConfigs{*****} Adding signing config to your app's Gradle config ​ The last configuration step that needs to be done is to setup release builds to be signed using upload key. Edit the file  android/app/build.gradle  in your project folder, and add the signing config, ... android { ... defaultConfig { ... } signingConfigs { //add this lines release { if (project.hasProperty('MYAPP_UPLOAD_STORE_FILE')) {