10 Replies Latest reply on May 18, 2018 12:09 PM by johnd19558435

    post fails under cli 7.1.0

    johnd19558435 Level 1

      hi,

      i'm submitting my phonegap app, written in javascript/html, to apple for beta review. my first effort failed due to 'missing app store icon.' i then added the following code to config.xml which resolved that issue:

       

      <icon src="icon/ios/icon.png" width="1024" height="1024" />

      <preference name="phonegap-version" value="cli-7.1.0" />

       

      however, this also caused the app to fail when making a POST call that had been working perfectly before the change:

      cs = $.post(app_url,{ param1: 'value', param2: 'value', param3: 'value', }, OnSuccess );

       

      when i remove <preference name="phonegap-version" value="cli-7.1.0" /> from config.xml, the POST again works fine.

       

      note that these lines are present in the config:

      <allow-intent href="https://www.example.com/*" /> ( actual url for the POST has been edited )

      <allow-navigation href="https://www.example.com/*" /> ( actual url for the POST has been edited )

       

      so i'm stuck. i can't get both the app store icon check to work AND the POST call to work at the same time.

      please advise. thank you.