Page 1 of 2

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

Posted: Thu Aug 15, 2013 2:41 am
by Jeff Givens

While testing my app in the appery.io platform using the appery.io proxy, my username/password login app is working just fine. It fails when it's supposed to an then succeeds when it's supposed to. Upon receiving a 'success' from clicking a button and sending the username/password to a remote PHP script on a mySQL data / Wordpress server, the application is then supposed to navigate to a new screen.

This works fine in the editor; however, when I build to binary and remove the appery.io proxy, the "Login" button that sends username/password to the PHP script always navigates to the new page. So I believe it is always thinking there is a 'success' response from the server.

The only thing I can think of is that the app thinks I already have an established connection to the server. Any thoughts?


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

Posted: Thu Aug 15, 2013 2:46 am
by maxkatz

Can you add an alert to all the callbacks when you build the binary, to see which once is invoked?


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

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

I added an alert to the Success and the Error callbacks. Doesn't matter what I put in for username/password, it always returns success. When I test the PHP file in hurl.it, it has the appropriate sucess/failure responses; however, when I do it on the phone, it's always success.


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

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

Going to see if I can find a way to log out of this session and add a script for that.


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

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

What Android version?


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

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

Android Version 4.1.2


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

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

Can you share the service with us so we can try it?


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

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

Should I just share the project?


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

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

What email address should I share it with?


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

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

Sure. I'll have our support team test this.