Petr Cervenka

Results 58 comments of Petr Cervenka

I woudl thing running ```cordova platform add android``` did the job? ``` └─(~/Work/slsa/mapbox-gl-cordova-offline-master)─(10 files, 1928b)─> cordova platform add android Using cordova-fetch for [email protected] Adding android project... Creating Cordova project for...

It prompted me to upgrade to Gradle 3.1.0 so doing that now. I will try just create new cordova project and only include the libs and plugins i need. it...

Hmm Android Studio did not work either :( ``` Configuration 'compile' is obsolete and has been replaced with 'implementation'. It will be removed at the end of 2018 Configuration 'debugCompile'...

**IOS** ``` ─(~/Work/slsa/mapbox-gl-cordova-offline-master)─(12 files, 1936b)─> cordova run ios Discovered platform "[email protected]" in config.xml or package.json. Adding it to the project Using cordova-fetch for [email protected] Adding ios project... Creating Cordova project...

When i craeted new project, and just copy the www over i manage to get it compilied. but now I get ```Failed to initialize WebG``` Do you need to run...

On IOS the app wont even run just dies after executing it. ``` No target specified for emulator. Deploying to iPhone-4s, 9.3 simulator An error was encountered processing the command...

Turns out it's new Xcode 9.3 issue you can make it run using ``` cordova run ios -l --target="iPhone-X" ``` !

**IOS** ![image](https://user-images.githubusercontent.com/16146/38650731-09af8992-3e30-11e8-81c7-b3c9b4d62946.png) **Android** ![image](https://user-images.githubusercontent.com/16146/38650735-1154615e-3e30-11e8-818b-a457f9a3364d.png) It seem the Android can not detect WebGL and complains about it, but the WebView def has WebGL support ( goging to http://html5test.com/s/823f29378ed7958e.html show it's ON)

Its not disable use DevTool to go to http://html5test.com/s/823f29378ed7958e.html in the same Cordova WebView and you will see its ON.