Page 2 of 2

Binary Android build 'post' method always returning a success in binary build

Posted: Thu Aug 15, 2013 3:33 am
by maxkatz

a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a


Binary Android build 'post' method always returning a success in binary build

Posted: Thu Aug 15, 2013 3:34 am
by maxkatz

And tell us how to reproduce the problem...


Binary Android build 'post' method always returning a success in binary build

Posted: Thu Aug 15, 2013 3:34 am
by Jeff Givens

I'm going to need to buy you a beer for all this help sometime, Max.


Binary Android build 'post' method always returning a success in binary build

Posted: Thu Aug 15, 2013 3:39 am
by Jeff Givens

Email sent to a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a for login info


Binary Android build 'post' method always returning a success in binary build

Posted: Thu Aug 15, 2013 6:32 am
by Jeff Givens

Fixed the issue. I had to enable CORS for Wordpress in the PHP Script header using this code:

require('../wp-blog-header.php');
header("HTTP/1.1 200 OK");
header("Access-Control-Allow-Origin: *");

....before, I did not have this line:
header("Access-Control-Allow-Origin: *");

Now it works in the binary AND in the test app. Thanks for your help.


Binary Android build 'post' method always returning a success in binary build

Posted: Thu Aug 15, 2013 6:44 am
by Maryna Brodina

Hi, glad it's working now! Thank you for update!


Binary Android build 'post' method always returning a success in binary build

Posted: Thu Aug 15, 2013 4:44 pm
by maxkatz

That's interesting.. when you run a hybrid app, CORS doesn't play a role. It only matters when running as mobile web.