Discussion Forums  >  WebViews and HTML for Mobile

Replies: 7    Views: 168

Jaundice101
I hate code!
Profile
Posts: 19
Reg: Apr 12, 2012
Davis, CA
4,590
06/21/15 01:20 PM (4 years ago)

Custom HTML Cache Question

Hey all,

I finished a version of my app for Android a short while ago and am finishing a version for iOS currently. One problem that's been noted with both versions is that it runs pretty slow apparently because it's constantly contacting buzztouch for the .html files for each entry the first time (it's a content based educational app). After this first view the .html file then gets cached and it's all good, but with about 150 separate entries it takes the first time user a lot of time up front accessing entries. They also of course can't pull up any entry for the first time when they're offline either. Is there anyway to download all the .html files with the app so that they can more readily and easily accessible for the user?

Thanks.
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
06/21/15 02:47 PM (4 years ago)
Yes, you can put the html files in your project build. That way all the files are local to your project and accessible without internet access. There are a fair number of posts about this in the forums.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
06/22/15 08:05 AM (4 years ago)
If you're using the Custom HTML/Text plugin, in which you used the online editor to create the content, you cannot download these files. You would want to use the HTML doc plugin if you wish to include an HTML file with your app.

And, I don't believe that caching is working all that well these days, so they'll probably need to connect each time they want to access the content. But you should test with the device offline just to make sure.

Mark
 
Jaundice101
I hate code!
Profile
Posts: 19
Reg: Apr 12, 2012
Davis, CA
4,590
like
06/22/15 07:57 PM (4 years ago)
I had done some searching before posting, but found nothing under that seemed pertinent under the terms "cache" and "offline" so thus I asked.

I am using the Custom HTML/Text plugin, unfortunately, so I guess I'll have to transfer the info to .html files and use the HTML doc plugin instead. See if that works with a few tests. Thanks for the assistance.
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
06/23/15 12:43 PM (4 years ago)
I use local html files in buzztouch quite a lot and there are a few things that cost me learning time when I first started. Here are a couple of threads that covers some of the things worth knowing if you are going to use local html in a buzztouch app. They might save you some time.

http://www.buzztouch.com/forum/thread.php?tid=2C19D71B02EA611624A3D95&fid=06DB0BCB08E3333&sortColumn=FT.id&sortUpDown=DESC&currentPage=6

http://www.buzztouch.com/forum/thread.php?tid=9E667F38A71E0098BE780CE&command=isSearching&currentPage=1&topicTitle=css&createdBy=&repliedBy=&minViews=-1&maxViews=-1&minReplies=-1&maxReplies=-1&forumCategory=

Cheers, Alan
 
Jaundice101
I hate code!
Profile
Posts: 19
Reg: Apr 12, 2012
Davis, CA
4,590
like
06/24/15 07:53 PM (4 years ago)
Thanks I appreciate the additional guidance. Hopefully there won't be too many additional speed bumps in the transition.
 
Jaundice101
I hate code!
Profile
Posts: 19
Reg: Apr 12, 2012
Davis, CA
4,590
like
08/17/15 10:40 PM (4 years ago)
I made the changes suggested and, surprise surprise, it worked! My app is now functional once again and far faster now that the content is downloaded with the app as opposed to being called down from the buzztouch site each time a user wants to access it for the first time. Thanks a lot guys!
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
08/18/15 01:31 AM (4 years ago)
I like a happy ending. Nice one @Jaundice101, glad you got there!

Alan
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.