title: Capacitor.isNative changes value when reloading page in Webview or when restarting app
body: <p>In the capacitor app we are developing for Android we load the entire app from a url using <em><strong>server.url</strong></em>  in <em><strong>capacitor.config.json</strong></em>.</p>
  <p>Our app is a single-spa application which loads angular apps as multiple microfrontends. We build our app using the commands:</p>
  <ol>
  <li><em>npm run build</em> (this builds the root config for single-spa)</li>
  <li><em>npx cap sync android</em></li>
  <li><em>npx cap open android</em></li>
  <li>then build APK using Android Studio</li>
  </ol>
  <p>Then we try doing the following code in one of our angular components. It is done to conditionally implement some platform specific logic in component.
  <div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>import { Capacitor } from '@capacitor/core';
  console.log(Capacitor.isNative); 
  //this logs "true" when loading the app after clearing app data or loading app for first time
  //but logs "false" when reloading the webview using chrome debugger or when closing app and opening again(without clearing data)</code></pre>
  </div>
  </div>
  </p>
  <p>In our case the <strong>Capacitor.isNative</strong> field changes from being <strong>true</strong> to <strong>false</strong> after reloading using chrome debugger or closing and opening app again. Is there something extra we have to do to make sure that Capacitor recognizes the App as a native app? Anybody has any idea as to why the Capacitor object changes after we reload the page?</p>
  <p>We have tried using other Capacitor APIs for detecting platform like <strong>Capacitor.getPlatform()</strong> and <strong>Capacitor.platform</strong>. Both of these change from &quot;android&quot; to &quot;web&quot; after reopening app or reloading the page using chrome debugger.</p>
  <p>We have also seen similar behavior when trying to load other Capacitor Plugins wherein the plugin object changes its structure(i.e. presumably the web implementation gets loaded instead of Android specific implementation) after the page is reloaded or app is restarted. Has anybody faced issues similar to this?</p>