How can I connect Quasar-Cordova ios app to the existing tomcat service at local computer?

  • The Quasar works fine for SPA at localhost:port# hosted by tomcat.

    To test the mobile app, I ran the “quasar dev -m cordova -T ios” with my iphone connected with my laptop through USB, the app was installed and also opened with the index.html. The problem is I cannot connect it to the tomcat backend running @ localhost:port#, when I make a post or get request.

    The config.xml is like this:

    <?xml version=‘1.0’ encoding=‘utf-8’?>
    <widget id=“” version=“1.0.0” xmlns=“” xmlns:cdv=“”>
    <name>Quasar App</name>
    <description>A Quasar App</description>
    <author email="" href=“”>
    Apache Cordova Team
    <content src=“index.html” />
    <access origin="" />
    <allow-intent href="http://
    /" />
    <allow-intent href="https://
    /" />
    <allow-intent href="tel:
    " />
    <allow-intent href=“sms:" />
    <allow-intent href="mailto:
    ” />
    <allow-intent href=“geo:" />
    <platform name=“android”>
    <allow-intent href="market:
    ” />
    <platform name=“ios”>
    <allow-intent href=“itms:" />
    <allow-intent href="itms-apps:
    ” />
    <plugin name=“cordova-plugin-whitelist” spec="^1.3.3" />
    <engine name=“ios” spec="^4.5.4" />

    What steps I need to take to make it work?

    Thanks a lot.

Log in to reply