Page 1 of 1

Tutorial is a bust...

Posted: Thu Mar 27, 2014 4:14 pm
by YS

I've followed this tutorial to a tee but for some reason it's just not working. In fact the online/offline indicator is not even working. Is there a way to load this into my trial account?


Tutorial is a bust...

Posted: Thu Mar 27, 2014 4:38 pm
by Nikita

Hello,

What tutorial do you mean? If you mean the events online/offline, then they are fired when device is connected / disconnected from the Internet.


Tutorial is a bust...

Posted: Thu Mar 27, 2014 4:40 pm
by YS

Are you saying that the events are fired when there is a state change online to offline or the other way around only? I followed the offline tutorial and the items I populated in the DB don't even load the first time...


Tutorial is a bust...

Posted: Thu Mar 27, 2014 5:17 pm
by Nikita

Please add to these events an alert(); with appropriate text to check their performance.


Tutorial is a bust...

Posted: Thu Mar 27, 2014 6:44 pm
by YS

Thanks Nikita. I re-read my comments above and in hindsight they are not at all clear. My apologies.

I have things behaving mostly as expected. Is there a method of toggling between being online and offline in the appery simulator?


Tutorial is a bust...

Posted: Thu Mar 27, 2014 11:36 pm
by Illya Stepanov

Hello -
[quote:]
Is there a method of toggling between being online and offline in the appery simulator?
[/quote]
Do you mean here Appery.io Mobile tester or?


Tutorial is a bust...

Posted: Thu Mar 27, 2014 11:38 pm
by YS

Yes. I'm a bit confused because after the initial data fetch the app doesn't create/delete anything. I suspect this is because it is stuck in offline mode. Beyond this the status is not showing up at all in the footer.


Tutorial is a bust...

Posted: Thu Mar 27, 2014 11:58 pm
by Illya Stepanov

It's recommended to test such behavior on a device, not in Tester.

And it's really hard to say what is wrong in your app. All the logic of triggering should be coded with JavaScript, you can place alert(); after data transfers and so on.