Dromundi
I hate code!
Profile
Posts: 43
Reg: Feb 17, 2012
location unknow...
730
04/12/12 03:19 AM (13 years ago)

2 questions about offline app

Hey everyone, I am developping an app for iOS with BT v1.5 I want to have this app to work offline. So I read the different threads and the document from GoNorthWest. But now I have 2 problems. The first one is the fact that I erased the Cloud URL link and the configuration Data URL. I then copied the BT_config.txt from BT and pasted it in my application. And now when I launch the iPhone simulator I don't have anymore the little refresh button at the top left of the simulator. So I have put back the default Cloud URL link and the configuration Data URL, copied and pasted again in the BT_config.txt. I relaunched the simulator but the refresh button is still not there. I am obviously doing something wrong but I cannot see what. Any idea? My second problem is about HTML documents I have in this app. My problem here is that some of the javascript and css are taken from the web. So for having a complete offline app, I don't want the app to catch this info. So I saved these javascript and css files and put them in my xcode project. I have modified the html documents to catch them instead of going to the web, but there once again on the simulator, it doesn't work. As if the html document is not read properly. I am doing wrong somewhere or it is not possible to have javascript and css files in an xcode project being called by an html document? For sure the problem is not coming from my html code because on my computer the html are displayed properly when I have no internet connection. Regards
 
Dromundi
I hate code!
Profile
Posts: 43
Reg: Feb 17, 2012
location unknow...
730
like
04/12/12 04:31 AM (13 years ago)
Ok so for the first problem I found the solution thanks to this thread : http://www.buzztouch.com/forum/thread.php?tid=9CAE9A80B850AEC&command=isSearching&currentPage=3&topicTitle=refresh&createdBy=&repliedBy=&minViews=-1&maxViews=-1&minReplies=-1&maxReplies=-1&forumCategory= You need to "Rest Content and Settings" in the iOS simulator. But I still have the second problem to solve.
 
Stobe
buzztouch Evangelist
Profile
Posts: 1528
Reg: Mar 04, 2011
Fredericksburg,...
24,680
like
04/12/12 04:59 AM (13 years ago)
Did you move the javascript file from the "compile" to the "copy" section of the build settings? (sorry, I'm not sitting at my Mac right now, so I might not have the exact wording correct)
 
Dromundi
I hate code!
Profile
Posts: 43
Reg: Feb 17, 2012
location unknow...
730
like
04/12/12 07:38 AM (13 years ago)
No I did not. I read first a previous which advised to look at the sample.html in the project to see the way the .css and javascript are called. Because it did not work better and I looked at this thread : http://www.buzztouch.com/forum/thread.php?tid=3110D75D46FE11C5BF90B65&command=isSearching&currentPage=1&topicTitle=javascript&createdBy=&repliedBy=&minViews=-1&maxViews=-1&minReplies=-1&maxReplies=-1&forumCategory= It explained what you suggested. I finally found where this build settings was and in the end it worked! Thanks a lot Stobe.
 

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.