guaka / mediawikixml2meteor2phonegap

Turn MediaWiki XML dumps into a Phonegap app, through Meteor
http://wiki.yt/
Other
9 stars 1 forks source link

gracefully handle images #19

Open guaka opened 11 years ago

guaka commented 11 years ago

show images when online

fail gracefully when offline or on low bandwidth

guaka commented 11 years ago

roaming or online/offline toggle?

simison commented 11 years ago

I don't think you can see from PhoneGap when phone is roaming. You can of course write simple plugin for it! Community would appreciate. I would find use for it as well. http://stackoverflow.com/questions/12595744/detecting-when-roaming-is-turned-off-in-android

simison commented 11 years ago

Would it be possible to download all the images from mediawiki as a zip file?

Or we could at least save all the images we show to phone for offline use.

guaka commented 11 years ago

Images would be complicated as e.g. Hitchwiki is using Wikimedia Commons as well. And I personally wouldn't want the images inside an app...

guaka commented 11 years ago

for now: hide gallery

I think actually showing images is a bit too complicated for now...

PhilGruber commented 11 years ago

Sooner or later we will need to do that. Can we at least find out whether we are online?

Roaming is not important, the user has to decide for himself, whether he wants to be online. Online/offline mode shouldn't be too hard to implement.

simison commented 11 years ago

Can we at least find out whether we are online?

See http://docs.phonegap.com/en/2.5.0/cordova_connection_connection.md.html#Connection

simison commented 11 years ago

Oh and when online, we should use lazyloading to show images only when users really would see them (eg. start loading image when viewport is moving towards them and near enough). This might be little bit difficult to make with mobile screens tho, even with current ready made JS solutions...