Discussion Forums  >  Uncategorized

Replies: 6    Views: 337

claudio
buzztouch Evangelist
Profile
Posts: 51
Reg: Jun 10, 2011
Chiang Mai, Tha...
510
11/17/11 02:16 AM (14 years ago)

Can't make my app offline even after following the forum steps

I'm trying to make my app offline. Using BT1.5 for iOS on buzztouch.com (no BTserver for this app). This is the step I did: 1) on control panel, copied my BT_config.txt file (plain text) 2) pasted it on my BT_config.txt file in my xcode pj 3) on control panel, leave blank the dataURL and report to cloud URL 4) on Xcode, delete the url for dataURL either report to cloud URL 5) clean and rebuild I'm checking on the simulator, disconnecting my mac from internet. It loads the splash screen, the first menu list, but when I click on every menu items it says: Data for this screen has not been downloaded. Please check your internet connection At first, when at 3), I let the command voice ( dataURL:, AND reportToCloudURL:). Then, I completely deleted the two lines, but nothing has changed. I am sure I am making some stupid mistakes. Can someone helps me please?
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
11/17/11 03:43 AM (14 years ago)
It sounds simple but gets frustrating sometimes for sure! One of the issues in v1.5 is that is automatically adds a dataURL to the advanced properties in the control panel. These dataURL's are probably in the config.txt file in your Xcode project for lots of different screens. Example: Custom HTML, Custom URL, Map, etc. If these are using a dataURL they will look to the internet for the content. The trick is understanding where / how the content is loaded. If you're running 100% offline then for sure all the data will need to be included in the Xcode project. Data may be pdfs, html, audio, etc. I would do this: a) Forgot about the control panel for minute and just work in Xcode b) Have a look through the BT_config.txt file you have in the project. Search (command f) for http:// You're trying to identify all the URL's for various screen types. Remove them if you fin dthem. c) Compile. Test. Open the Output Console. For every screen, when it loads it will show in the console where it's looking for data. In this case it won't have any dataURL's so it won't look online for anything. Get good at using the Clear button on the console. Clear, Tap a menu item, review the console....CLEAR, tap a menu item, review the console. It won't take you too long to see what's happening and how to easily understand what's output to try to make it easier on you. d) After you get cozy with this process, return to the contorl panel and remove all the dataURL's for the screens you have. When you make new screens, remove the dataURL that is automatically inserted. This approach will allow you to copy the config data from the control panel and all the dataURL's will be gone. We've learned sooooo much during this process..dataURL's and huge part of it. When we get a few more plugins made it should become much less confusing. Your online control panel will be exactly like those that are self-hosted and you'll be able to add / remove plugins making it much easier to understand - we think! LOL.
 
claudio
buzztouch Evangelist
Profile
Posts: 51
Reg: Jun 10, 2011
Chiang Mai, Tha...
510
like
11/17/11 08:44 AM (14 years ago)
David, thanks a lot for getting time to reply me! I know you are so busy right now that the server is out! Anyway, my application has youtube links and dropbox links. I searched on the config txt the key dataURL instead that http:// , and you were (of course) completely right! actually there is a link for every HTML page! so I will delete all of them! then I will check.. and I will try to to do what you said.. don't know anything about Output Console, but I'll google it hope to be lucky :) I will update you, Still thanks
 
claudio
buzztouch Evangelist
Profile
Posts: 51
Reg: Jun 10, 2011
Chiang Mai, Tha...
510
like
11/18/11 03:29 AM (14 years ago)
Ok David, here I come back to you.. deleted all the dataURL=www.buzztouch.com but then, testing my app, it said something like config data incorrect ..actually the app did not even run, I could just see the splash screen.. so copied/pasted the config txt from the web site to my xcode again, and the problem is still there.. I saw my problem is with custom HTML pages.. in the BT_config.txt file, every Custom HTML page has a link to the BT server.. when I click on them (testing offline), I can see the background image (hosted in the xcode pj) but not the text, that requires an internet connection. just a question.. when I download the source code, in which directory are my custom HTML pages stored? because I couldn't find any looking in the xcode pj.. is it possible that deleting the dataURL is not enough because then the app doesn't know where to go to get the datas? so, basically, I just need to move my Content HTML page offline... any other idea? another thing, don't know If it helps to understand the situation.. there is also a quiz stored in the app.. when I first click on it, the popup comes out saying that I need internet connection, but If I close it and ignore it, I can play the quiz with no problems...
 
claudio
buzztouch Evangelist
Profile
Posts: 51
Reg: Jun 10, 2011
Chiang Mai, Tha...
510
like
11/18/11 03:57 AM (14 years ago)
this is what the console tells me when I click on one menu item to open a custom HTML page Nov 18 17:39:51 unknown leaderstalk[1212] <Warning>: BT_screen_menuList: didSelectRowAtIndexPath: Selected Row: 40 Nov 18 17:39:51 unknown leaderstalk[1212] <Warning>: BT_application: getScreenDataByItemId FF95263EA8BE4D9F3BAD4DA Nov 18 17:39:51 unknown leaderstalk[1212] <Warning>: BT_application: screenType is BT_screen_customHTML for screen with nickname: Saint Francis of Assisi and itemId: FF95263EA8BE4D9F3BAD4DA Nov 18 17:39:51 unknown leaderstalk[1212] <Warning>: BT_viewControllerManager: handleTapToLoadScreen Nov 18 17:39:51 unknown leaderstalk[1212] <Warning>: BT_viewControllerManager: the parent screen nickname: Speeches itemId: F3ED42C9B4643FAB0C9FF20 itemType: BT_screen_menuList Nov 18 17:39:51 unknown leaderstalk[1212] <Warning>: BT_viewControllerManager: the menu/button tapped is itemId: B06E7AD0AC9665189B41838 Nov 18 17:39:51 unknown leaderstalk[1212] <Warning>: BT_viewControllerManager: the screen to load is nickname: Saint Francis of Assisi itemId: FF95263EA8BE4D9F3BAD4DA itemType: BT_screen_customHTML Nov 18 17:39:51 unknown leaderstalk[1212] <Warning>: BT_viewControllerManager: initViewControllerForScreen nickname: Saint Francis of Assisi itemId: FF95263EA8BE4D9F3BAD4DA type: BT_screen_customHTML Nov 18 17:39:51 unknown leaderstalk[1212] <Warning>: BT_screen_customHTML: INIT Nov 18 17:39:51 unknown leaderstalk[1212] <Warning>: BT_viewUtilities: setting nav-bar background for Saint Francis of Assisi color: #000000 Nov 18 17:39:51 unknown leaderstalk[1212] <Warning>: BT_rotatingNavController: pushViewController for screen: FF95263EA8BE4D9F3BAD4DA Nov 18 17:39:51 unknown leaderstalk[1212] <Warning>: BT_screen_customHTML: viewDidLoad Nov 18 17:39:51 unknown leaderstalk[1212] <Warning>: BT_viewUtilities: getWebNavBarForScreen with nickname: Saint Francis of Assisi and itemId: FF95263EA8BE4D9F3BAD4DA and type: BT_screen_customHTML Nov 18 17:39:52 unknown leaderstalk[1212] <Warning>: BT_viewUtilities: getWebToolBarForScreen: No emailDocument method found, cannot add email document button for screen with itemId: FF95263EA8BE4D9F3BAD4DA Nov 18 17:39:52 unknown leaderstalk[1212] <Warning>: BT_screen_customHTML: viewWillAppear Nov 18 17:39:52 unknown leaderstalk[1212] <Warning>: BT_viewUtilities: configureBackgroundAndNavBar for screen with nickname: Saint Francis of Assisi and itemId: FF95263EA8BE4D9F3BAD4DA and type: BT_screen_customHTML Nov 18 17:39:52 unknown leaderstalk[1212] <Warning>: BT_fileManager: File does exist in Xcode bundle: Francis_of_Assisi_small_device.jpg Nov 18 17:39:52 unknown leaderstalk[1212] <Warning>: BT_background_view: Image for background view exists in Xcode bundle - not downloading. Nov 18 17:39:52 unknown leaderstalk[1212] <Warning>: BT_background_view: setImage Nov 18 17:39:52 unknown leaderstalk[1212] <Warning>: BT_screen_customHTML: initLoad Nov 18 17:39:52 unknown leaderstalk[1212] <Warning>: BT_fileManager: File does not exist in cached directory: screenData_FF95263EA8BE4D9F3BAD4DA.html Nov 18 17:39:52 unknown leaderstalk[1212] <Warning>: BT_screen_customHTML: showProgress Nov 18 17:39:52 unknown leaderstalk[1212] <Warning>: BT_viewUtilities: getProgressView Nov 18 17:39:52 unknown leaderstalk[1212] <Warning>: BT_downloader: INIT Nov 18 17:39:52 unknown leaderstalk[1212] <Warning>: BT_downloader: downloadFile: http://www.buzztouch.com/applications/EAB3D83F0D0EAC198F5950CCC/customHTML-FF95263EA8BE4D9F3BAD4DA.html Nov 18 17:39:52 unknown leaderstalk[1212] <Warning>: BT_screen_customHTML: downloadFileStarted: starting download... Nov 18 17:39:52 unknown leaderstalk[1212] <Warning>: BT_screen_customHTML: downloadFileCompleted: ERROR-1968: Code: -1009 Description: The Internet connection appears to be offline. Nov 18 17:39:52 unknown leaderstalk[1212] <Warning>: BT_screen_customHTML: hideProgress Nov 18 17:39:52 unknown leaderstalk[1212] <Warning>: BT_fileManager: File does not exist in cached directory: screenData_FF95263EA8BE4D9F3BAD4DA.html Nov 18 17:39:52 unknown leaderstalk[1212] <Warning>: BT_screen_customHTML: download error: There was a problem downloading data from the internet. Nov 18 17:40:02 unknown kernel[0] <Debug>: AppleBCMWLAN::setDISASSOCIATE() [configd]: Nov 18 17:40:02 unknown kernel[0] <Debug>: AppleBCMWLAN Left BSS: @ 0x83318800, BSSID = 58:6d:8f:45:9f:26, rssi = -51, rate = 54 (100%), channel = 6, encryption = 0x1, ap = 1, failures = 0, age = 300, ssid[28] = TARNTIP WiFi AP3 083-4731079 Nov 18 17:40:02 unknown kernel[0] <Debug>: AirPort: Link Down on en0. Reason 1 (Unspecified). Nov 18 17:40:03 unknown com.apple.mobile.lockdown[18] <Notice>: Could not receive size of message Nov 18 17:40:03 unknown lockdownd[18] <Error>: 2ff73000 handle_connection: Could not receive USB message #6 from iTunes. Killing connection Nov 18 17:40:03 unknown kernel[0] <Debug>: AppleBCMWLAN::setASSOCIATE() [configd]: lowerAuth = AUTHTYPE_OPEN, upperAuth = AUTHTYPE_NONE, key = CIPHER_NONE , don't disassociate . Nov 18 17:40:03 unknown kernel[0] <Debug>: [58123.447271875]: AppleBCMWLANNetManager::prepareToBringUpLink(): Delaying powersave entry in order to get an IP address Nov 18 17:40:03 unknown kernel[0] <Debug>: AppleBCMWLAN Joined BSS: @ 0x83318800, BSSID = 58:6d:8f:45:9f:26, rssi = -42, rate = 54 (100%), channel = 6, encryption = 0x1, ap = 1, failures = 0, age = 0, ssid[28] = TARNTIP WiFi AP3 083-4731079 Nov 18 17:40:03 unknown kernel[0] <Debug>: AirPort: Link Up on en0 Nov 18 17:40:04 unknown configd[25] <Info>: hostname (prefs) = iPhone-di-Claudio-Casale Nov 18 17:40:13 unknown kernel[0] <Debug>: [58133.451592332]: AppleBCMWLANNetManager::handleDelayedPowerManagementTimeout(): Timed out waiting for IP address, entering powersave mode: 2 After, I go to the BT_config.txt in xcode, and I delete the dataURL for this custom HTML page. Test. click on the page, still says data for this screen has not been downloaded. Please check your internet connection.. the console says: Nov 18 17:44:14 unknown leaderstalk[1241] <Warning>: BT_screen_menuList: didSelectRowAtIndexPath: Selected Row: 40 Nov 18 17:44:14 unknown leaderstalk[1241] <Warning>: BT_application: getScreenDataByItemId FF95263EA8BE4D9F3BAD4DA Nov 18 17:44:14 unknown leaderstalk[1241] <Warning>: BT_application: screenType is BT_screen_customHTML for screen with nickname: Saint Francis of Assisi and itemId: FF95263EA8BE4D9F3BAD4DA Nov 18 17:44:14 unknown leaderstalk[1241] <Warning>: BT_viewControllerManager: handleTapToLoadScreen Nov 18 17:44:14 unknown leaderstalk[1241] <Warning>: BT_viewControllerManager: the parent screen nickname: Speeches itemId: F3ED42C9B4643FAB0C9FF20 itemType: BT_screen_menuList Nov 18 17:44:14 unknown leaderstalk[1241] <Warning>: BT_viewControllerManager: the menu/button tapped is itemId: B06E7AD0AC9665189B41838 Nov 18 17:44:14 unknown leaderstalk[1241] <Warning>: BT_viewControllerManager: the screen to load is nickname: Saint Francis of Assisi itemId: FF95263EA8BE4D9F3BAD4DA itemType: BT_screen_customHTML Nov 18 17:44:14 unknown leaderstalk[1241] <Warning>: BT_viewControllerManager: initViewControllerForScreen nickname: Saint Francis of Assisi itemId: FF95263EA8BE4D9F3BAD4DA type: BT_screen_customHTML Nov 18 17:44:14 unknown leaderstalk[1241] <Warning>: BT_screen_customHTML: INIT Nov 18 17:44:14 unknown leaderstalk[1241] <Warning>: BT_viewUtilities: setting nav-bar background for Saint Francis of Assisi color: #000000 Nov 18 17:44:14 unknown leaderstalk[1241] <Warning>: BT_rotatingNavController: pushViewController for screen: FF95263EA8BE4D9F3BAD4DA Nov 18 17:44:14 unknown leaderstalk[1241] <Warning>: BT_screen_customHTML: viewDidLoad Nov 18 17:44:14 unknown leaderstalk[1241] <Warning>: BT_viewUtilities: getWebNavBarForScreen with nickname: Saint Francis of Assisi and itemId: FF95263EA8BE4D9F3BAD4DA and type: BT_screen_customHTML Nov 18 17:44:14 unknown leaderstalk[1241] <Warning>: BT_viewUtilities: getWebToolBarForScreen: No emailDocument method found, cannot add email document button for screen with itemId: FF95263EA8BE4D9F3BAD4DA Nov 18 17:44:14 unknown leaderstalk[1241] <Warning>: BT_screen_customHTML: viewWillAppear Nov 18 17:44:14 unknown leaderstalk[1241] <Warning>: BT_viewUtilities: configureBackgroundAndNavBar for screen with nickname: Saint Francis of Assisi and itemId: FF95263EA8BE4D9F3BAD4DA and type: BT_screen_customHTML Nov 18 17:44:14 unknown leaderstalk[1241] <Warning>: BT_fileManager: File does exist in Xcode bundle: Francis_of_Assisi_small_device.jpg Nov 18 17:44:14 unknown leaderstalk[1241] <Warning>: BT_background_view: Image for background view exists in Xcode bundle - not downloading. Nov 18 17:44:14 unknown leaderstalk[1241] <Warning>: BT_background_view: setImage Nov 18 17:44:14 unknown leaderstalk[1241] <Warning>: BT_screen_customHTML: initLoad Nov 18 17:44:14 unknown leaderstalk[1241] <Warning>: BT_fileManager: File does not exist in cached directory: screenData_FF95263EA8BE4D9F3BAD4DA.html I am not an expert at all, but It seems to me that simply the config file can't find any data for that page without the link. seems like they are not stored in the xcode pj at all. hope this helps someone to help me :)
 
claudio
buzztouch Evangelist
Profile
Posts: 51
Reg: Jun 10, 2011
Chiang Mai, Tha...
510
like
11/18/11 05:46 AM (14 years ago)
SOLVED! I will just move all my custom HTML page in HTML doc.. tried with one page, and everything works!
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
11/18/11 01:49 PM (14 years ago)
Applause. Well done!
 

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.