VueJS / Quasar cordova android generates blank app

0

Hello,

I started using the Quasar Framework to create a hybrid app for Android.

After following the installation steps (WINDOWS 10), I created a default project, that is, I have not yet developed anything, I ran the command to run the app in the emulator: $ quasar dev -m cordova -T android

The process did not show any error, the app was successfully installed on the emulator, but when I open the app in the emulator it displays a blank screen.

Can anyone help me with this?

Thank you in advance!

    
asked by anonymous 15.03.2018 / 21:06

1 answer

0

In the development environment each request is made locally, unless you linke everything externally, for example in ...

<script src="/lib/ionic/js/ionic.bundle.js"></script>

You get the lib locally as if it were localhost:8000/lib/ionic/js/ionic.bundle.js

On desktop this address makes sense, since you are emulating an internal server, but on another device? he will not know what that localhost is: 8000

Then enter ngrok , just create a server on port 8000 with the command ngrok http 8000 , it will generate 2 urls with access to your server one with certificate and the other without.

Just link your calls right, example ...

<script src="http://81ade093.ngrok.io/lib/ionic/js/ionic.bundle.js"></script>
    
16.03.2018 / 13:10