Lin
Posts: 0
Joined: Wed Feb 18, 2015 2:56 am

App works in browser test, but not on the device.

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.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

App works in browser test, but not on the device.

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/...

Lin
Posts: 0
Joined: Wed Feb 18, 2015 2:56 am

App works in browser test, but not on the device.

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.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

App works in browser test, but not on the device.

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?

Lin
Posts: 0
Joined: Wed Feb 18, 2015 2:56 am

App works in browser test, but not on the device.

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.

Lin
Posts: 0
Joined: Wed Feb 18, 2015 2:56 am

App works in browser test, but not on the device.

and I'm testing on an iPhone 6 running IOS 8.1.3

Lin
Posts: 0
Joined: Wed Feb 18, 2015 2:56 am

App works in browser test, but not on the device.

It's still not working. Anyone have any suggestions?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

App works in browser test, but not on the device.

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).

Lin
Posts: 0
Joined: Wed Feb 18, 2015 2:56 am

App works in browser test, but not on the device.

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?

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

App works in browser test, but not on the device.

Hi Lin,

Unfortunately we can not say for sure, as we are not able to replicate.

Return to “Issues”