V
V
Volodymyr Palamar2021-01-27 12:07:05
JavaScript
Volodymyr Palamar, 2021-01-27 12:07:05

How to open PWA from browser using js?

Hello, after installing PWA in chrome on a PC, it automatically opens the application by closing the tab in the browser. How to achieve this on mobile devices?

Function to close tab
function leave() {
  var myWindow = window.open("", "_self");
  myWindow.document.write("");
  setTimeout (function() {myWindow.close();},1000);
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question