Force application to restart on first activity(Ionic)

I am developing an ionic application.I list the apps installed on the mobile device.How can I force these applications to work.This can be done with Android app.In this way

     indent preformatted text by 4 spacesIntent i = getBaseContext().getPackageManager()
     .getLaunchIntentForPackage( getBaseContext().getPackageName() );
      i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
     startActivity(i);

I do not know how I can do it in Ionic.I’m waiting for your help.help me

You can use https://github.com/lampaa/com.lampa.startapp

1 Like

thank you very much thesourav