Bad Addy
Posts: 0
Joined: Fri Dec 13, 2013 9:34 pm

Debugging Question for iOS

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 ?

Bad Addy
Posts: 0
Joined: Fri Dec 13, 2013 9:34 pm

Debugging Question for iOS

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 ?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Debugging Question for iOS

Hello,

We are working on it, will check this.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Debugging Question for iOS

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

Bad Addy
Posts: 0
Joined: Fri Dec 13, 2013 9:34 pm

Debugging Question for iOS

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.

Bad Addy
Posts: 0
Joined: Fri Dec 13, 2013 9:34 pm

Debugging Question for iOS

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

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

Bad Addy
Posts: 0
Joined: Fri Dec 13, 2013 9:34 pm

Debugging Question for iOS

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

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

Debugging Question for iOS

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Debugging Question for iOS

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?

Bad Addy
Posts: 0
Joined: Fri Dec 13, 2013 9:34 pm

Debugging Question for iOS

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

Return to “Issues”