Search code examples
androidionic-frameworkmapbox-gl-jscapacitor

Mapbox-gl crashing on android emulator (ionic capacitor)


I'm working on an app using Ionic 5 Capacitor / Angular, and everything works perfectly until I launch the emulator with mapbox-gl. It just keeps crashing, and I don't get why since it works fine on my web version.

Anyone knows how to deal with this situation?


Solution

  • Webgl only works on android Q emulator or newer when using a webview to load the app https://issuetracker.google.com/issues/37129533

    Better test on real devices