Page 1 of 2

Debugging Question for iOS

Posted: Fri Feb 07, 2014 10:26 am
by Bad Addy

I am having major problems in debugging ios while using Appery to build the app.

I have build an app, using Appery and Javascript, and it works great on the test, other than that device id. But when using it on the device its hugely different, and very difficult to find any snagging in the code.

One example is, device ready, does give you the device id using 'localStorage.getItem('pushNotificationDeviceID')'. Even though the documentation stats it will.

How do you debug, when you are unable to get a test device id on the Appery Testing page, and unable to see console.logs on the device console page.

It seems I am having to part build the app on here, export it to xcode. Going back and forth is not what I had in mind, and I am thinking, would it be easier to just use xcode and not bother with Appery? I just don't find it user friendly when debugging.

What do you suggest ?


Debugging Question for iOS

Posted: Fri Feb 07, 2014 11:00 am
by Bad Addy

When I use device.uuid to get the device ID, the response is always the same, yet the device ID is different in the database Device collection ?


Debugging Question for iOS

Posted: Fri Feb 07, 2014 1:13 pm
by Kateryna Grynko

Hello,

We are working on it, will check this.


Debugging Question for iOS

Posted: Fri Feb 07, 2014 3:12 pm
by Kateryna Grynko

There must be the same values. You can use alerts to check your app work. Do you have any specific question?

Please find all the possible Appery.io debugging approaches listed here:
http://docs.appery.io/documentation/d...


Debugging Question for iOS

Posted: Fri Feb 07, 2014 10:23 pm
by Bad Addy

Okay, I have fixed this, and also the uuid for iOS is never the same when you update, remove and reinstall etc. It states this on phonegap.

This is a pain, so will need to make a design change.


Debugging Question for iOS

Posted: Fri Feb 07, 2014 10:25 pm
by Bad Addy

The best debugging i have found is http://jsconsole.com/

This is awesome, easy and works really really well with Appery.io


Debugging Question for iOS

Posted: Fri Feb 07, 2014 10:27 pm
by Bad Addy

I would only say, as a specific question, that Device Ready does not give you the device.uuid. Why is that ?

I worked around it, with a While statement, but as the docs state the Device Ready will give you this, and it does not, might give people huge headaches, as it did me, with work-arounds :)


Debugging Question for iOS

Posted: Fri Feb 07, 2014 10:53 pm
by Illya Stepanov

Hi -- thanks for point it out, we'll check this.


Debugging Question for iOS

Posted: Mon Feb 10, 2014 1:41 pm
by Maryna Brodina

Hello! Thank you for pointing to http://jsconsole.com/
By the way we have Weinre debugger http://docs.appery.io/documentation/d...

[quote:]but as the docs state the Device Ready will give you this...[/quote]Could you clarify what doc you mean?


Debugging Question for iOS

Posted: Mon Feb 10, 2014 1:59 pm
by Bad Addy

Yes, here is the link, and what you said. Sorry, I am not sure why i said doc, but here it is:

https://getsatisfaction.com/apperyio/...

"Maryna Brodina (Employee) 1 month ago

There is no need to use device.uuid, it's not correct. Correct device id is saved into pushNotificationDeviceID localStorage variable on device ready event automatically. "