Jeff Givens
Posts: 0
Joined: Sat Aug 10, 2013 8:20 pm

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

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?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

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

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

Jeff Givens
Posts: 0
Joined: Sat Aug 10, 2013 8:20 pm

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

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.

Jeff Givens
Posts: 0
Joined: Sat Aug 10, 2013 8:20 pm

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

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

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

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

Jeff Givens
Posts: 0
Joined: Sat Aug 10, 2013 8:20 pm

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

Should I just share the project?

Jeff Givens
Posts: 0
Joined: Sat Aug 10, 2013 8:20 pm

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

What email address should I share it with?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

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

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

Return to “Issues”