Tuesday, August 15, 2023

How to generate Splash screen capacitor Ionic

 You can generate Splash Screens and Icons for your iOS, Android or Progressive Web Application using the @capacitor/assets tool.

Step 1: npm install @capacitor/assets --save-dev

Step 2 : npx capacitor-assets generate

Step 3 : Create a resources and run below cmd

Step 4 : npx capacitor-assets generate




Saturday, August 12, 2023

How to check Network Status in Ionic capacitor ?

 


NPM install




Step 1 : npm install @capacitor/network 

Step 2 :   

 import { Network } from '@capacitor/network

 constructor() {

    this.checkNetworkConnection();

  }

checkNetworkConnection(){

  Network.addListener('networkStatusChange', status => {

  console.log('Network status changed', status);

});

const logCurrentNetworkStatus = async () => {

  const status = await Network.getStatus();

  console.log('Network status:', status);

};

}


How to build an Express and Node.js app with Typescript

  In this tutorial, you will learn how to set up a Node.js and Express project with Typescript and live auto-reloading. Note that this metho...