-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
local data #69
Comments
what is offline mode? is that an application defined thing or is it analogous to when the phone enters "airplane mode." if the latter, i wouldn't be surprised if the OS restricts HTTP calls (even local), so &-sync hangs/times out. are you using ampersand-sync (default w/ &-model) or have you used a different sync mechanism? haven't ever done android dev, so i can't given in depth feedback, though am about to start on my first one :). |
Hello, Offline mode is just the application switch and call all of data in the filesystem. eg: cdvfile://localhost/persistent/uploads/json/bootstrap.json instead of call external REST API. My main view seem be blocked and the models are empty. Thank you! |
i've never tried to hit an endpoint where information served on the loopback is not explicitly served over http. it's not really a problem with &-model--&-model with REST mixin will make HTTP requests via xhr to the endpoint. if that endpoint doesn't serve JSON back, kaboom. @AmpersandJS/core-team, has anyone seen a mobile friendly f/s not a mobile expert, so take it with a grain of salt |
Hello, It's strange because the json loaded have same architecture as the data returned when the app has the offline mode turned off, and on ios environnement it's alright! :| Thank you for your answers :) |
Hello,
My app have an offline mode and all of data is saved in cdvfile://localhost/persistent/...
When offline mode is activate the urls of models data change for json local url.
On ios its ok but on android the status of the json files is 'pending' on google dev tools network when the app is starting and the app is blocked.
Any idea?
The text was updated successfully, but these errors were encountered: