Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48980

Android emulator incorrectly identified platform as desktop

$
0
0

Whenever I run the dev server to test on an Android emulator on @capacitor/cli ^3.2.5, @ionic/angular ^6.0.0, and @ionic/cli ^6.18.1, the emulator tells Platform in @ionic/angular that it’s a desktop. I can run it on a real android device and it works perfectly fine. Not sure what’s going on here.

Here’s the command I run to launch.

ionic capacitor run android -l --external --port=8102

Whether I’m using this command or running through Android Studio manually, I get the same result within the emulator. If it matters, all the emulators I have are API 30.

This was not an issue on Capacitor 2 with Ionic 5 and only came up after updating both. I did not dig into it enough to know whether it was Ionic or Capacitor being updated that caused this.

Any idea why it’s happening?

Thank you

P.S.
Running ionic info:

Ionic:

   Ionic CLI                     : 6.18.1 (/Users/user/.nvm/versions/node/v14.15.3/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 6.0.0
   @angular-devkit/build-angular : 12.2.13
   @angular-devkit/schematics    : 12.2.13
   @angular/cli                  : 12.2.13
   @ionic/angular-toolkit        : 5.0.3

Capacitor:

   Capacitor CLI      : 3.2.5
   @capacitor/android : 3.3.1
   @capacitor/core    : 3.2.5
   @capacitor/ios     : 3.2.5

Cordova:

   Cordova CLI       : not installed
   Cordova Platforms : not available
   Cordova Plugins   : not available

Utility:

   cordova-res (update available: 0.15.4) : 0.15.1
   native-run (update available: 1.5.0)   : 1.4.0

System:

   Android SDK Tools : 26.1.1 (/Users/user/Library/Android/sdk)
   NodeJS            : v14.15.3 (/Users/user/.nvm/versions/node/v14.15.3/bin/node)
   npm               : 6.14.9
   OS                : macOS Big Sur
   Xcode             : Xcode 13.1 Build version 13A1030d

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48980

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>