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?
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?
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.
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...
Please add to these events an alert(); with appropriate text to check their performance.
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?
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?
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.
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.