Page 1 of 2
App works in browser test, but not on the device.
Posted: Sun Mar 08, 2015 4:19 pm
by Lin
Testing works on browser, but not on the device (using weinre). When I test my app in the browser, I hit the login button and the user is logged into the backend database (which is hosted on Appery). However, when I test it on an actual iPhone, the login service doesn't appear to be successful. (When I hit the log-in button on the phone, the little processing icon spins for a few milliseconds and then nothing happens.) I've tried debugging using weinre, but I can't figure out how to step through the code that's running on the phone or how to find out if the service was successful. Any suggestions on what might be causing the code to work differently on the device, or any suggestions or how to capture relevant debugging info in weinre would be helpful.
App works in browser test, but not on the device.
Posted: Sun Mar 08, 2015 6:19 pm
by Illya Stepanov
Hi Lin -
You will need to create a success and error events alerts when configuring your service, like for example described in our tutorials here -- http://devcenter.appery.io/tutorials/...
App works in browser test, but not on the device.
Posted: Sun Mar 08, 2015 8:50 pm
by Lin
Thanks for the response IIIya. I already have success and error events for the login service. On Success, I grab the username, userid, and session token, and open a popup that says "Login successful". On Error I run a javascript that says "Login Failed". Both events fire correctly when testing in the browser, but neither works on the device.
App works in browser test, but not on the device.
Posted: Sun Mar 08, 2015 9:35 pm
by Illya Stepanov
So, on the device there is no alerts messages at all?
Is it possible for you to share your app with us or post app public link? We will take a look. And please specify your app name and steps to reproduce this issue and test login credentials.
What iOS version is on your test device?
App works in browser test, but not on the device.
Posted: Sun Mar 08, 2015 9:53 pm
by Lin
OK - I checked the "share with support button". The app name is LSZAPP01. To test the login functionality select menu - login / out. username: bob Password: bob.
App works in browser test, but not on the device.
Posted: Sun Mar 08, 2015 10:33 pm
by Lin
and I'm testing on an iPhone 6 running IOS 8.1.3
App works in browser test, but not on the device.
Posted: Mon Mar 09, 2015 9:26 pm
by Lin
It's still not working. Anyone have any suggestions?
App works in browser test, but not on the device.
Posted: Thu Mar 12, 2015 12:25 am
by Illya Stepanov
Hi Lin -
We are sorry for such delay.
We've tested your app on several devices and login works for us correctly on this devices (iPhone iOS 7.1.2 and iPad iOS 8.1.3).
App works in browser test, but not on the device.
Posted: Sun Mar 15, 2015 6:02 pm
by Lin
Thanks again Illya. Yes - the login works for me on an iPad and an iPhone 5. But it does not work on my iPhone 6 plus. Is there something peculiar about the iPhone 6 that prevents Appery.io Apps from working correctly?
App works in browser test, but not on the device.
Posted: Wed Mar 18, 2015 9:04 pm
by Alena Prykhodko
Hi Lin,
Unfortunately we can not say for sure, as we are not able to replicate.