title: How to create a browser instance (pupeeteer) with firebase and use it in my app (node.js)?
body: <p>I created a firebase project. This communicates with a mobile application (node.js). As part of this project I want to use pupeeteer.</p>
  <p>I have no problem launching functions using pupeeteer in firebase.</p>
  <p>The problem is that I want to make the user perform actions. So I have to display the web page (pupeeteer) in the application via a browser generated by the server (with a firebase function?)?</p>
  <p>However I have no idea how to launch a browser instance in the background and close it at the end of processing?</p>
  <p>Can you help me ? Is this the right solution?</p>
  <p><a href="https://i.stack.imgur.com/Vj6at.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Vj6at.jpg" alt="enter image description here" /></a></p>
  <p>I want to use this :</p>
  <p>This library does 2 things:</p>
  <p>Download the chromium binaries and launch a Chromium process.
  Connect to this process with Websocket and send json commands to control the browser.
  Due to limitations on mobile platforms (iOS and Android), it is not possible to launch an external Chromium process on iOS and Android. So, step 1) does not work on mobile.</p>
  <p>You can still use puppeteer-dart on Flutter either with:</p>
  <p>Flutter on Desktop (macOS, windows, Linux)
  Flutter on mobile BUT with the actual Chrome instance running on a server and accessed from the mobile app using puppeteer.connect
  The pub.dev website reports that this library works with Android and iOS. The supported platform list is detected automatically and can't be manually modified to express the current limitations</p>