Discussion Forums  >  Uncategorized

Replies: 12    Views: 446

infiniteloop
Code is Art
Profile
Posts: 15
Reg: May 11, 2011
Miami
2,900
05/18/11 11:56 AM (14 years ago)

Menu - List - Offline mode

Hello, I am trying to get my 1.5 iOS app to run in a laptop with no internet connection. I read the previous posts about running the app offline, so I removed the url from the Configuraiton Data > dataURL in the Core Properties settings. I also removed the Report To Cloud URL > Cloud URL. The problem is that the main screen has a Menu-list and when the app loads only the main image shows up, no menu items are showing. I also tried removing the Screen Data URL from the advanced menu properties but still nothing. Can the menus show in offline mode ? Sorry if this was previously asked, I did a search on the forum and I couldn't find any references/topics. Thanks in advance for all the help.
 
Mackimack
Apple Fan
Profile
Posts: 481
Reg: Dec 30, 2010
Sweden
14,310
like
05/18/11 02:27 PM (14 years ago)
Go to core setting click on show config.php. Mark everything copy. Go to your local config file in the xcode projekt and pase it in. That will help you I hope.
 
infiniteloop
Code is Art
Profile
Posts: 15
Reg: May 11, 2011
Miami
2,900
like
05/18/11 05:00 PM (14 years ago)
Thanks for the reply Mack, I forgot to mention that I did that part also as well, but still no luck.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
05/19/11 02:30 AM (14 years ago)
Hi in Miami: The menu can FOR SURE show in offline mode. Shoudl be an easy fix. a) make sure simulator data directory is empty. Mine is located here on my machine: /Users/davidbook/Library/Application Support/iPhone Simulator/4.2/Applications/APP ID/Documents Just drag everything in that folder to the trash if it has anything in it. b) Open the BT_config.txt file in the Xcode project. Be sure the dataURL and reportToCloudURL are empty (like you did already) c) Scroll down and find the screen data for the BT_screen_menuList item. This is in the JSON data. Remove it's dataURL (like you already did). d) Next, and this is were it can get tricky: Look at this screens 'childItems' Are there any? The menu items themsevles, each item you added to the menu should show in the childItems list for that screen. If there are no child items (empty array with square brackets), no items will display. In this case, re-download your projects configuration file (see the link in Core Properties on your control panel). In this case, it's likely that you added items to the menu after you downloaded your project and the BT_config.txt file does not have these items in it.
 
infiniteloop
Code is Art
Profile
Posts: 15
Reg: May 11, 2011
Miami
2,900
like
05/19/11 05:59 AM (14 years ago)
Hello David, thanks for the reply. I do see some childitems in the config.txt file, but they are only showing for a Location Map (which is a menu item inside the menu list), but the actual menu items are showing as itemNickname. so I am guessing I am doing something wrong ? How can I change those into childitems ? Thanks again.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
05/19/11 09:34 AM (14 years ago)
You shouldn't try modifying the BT_config.txt file - it's super easy to break! Do this instead: a) visit your control panel and make the needed changes (add and remove screens, items, etc) b) Visit the Core Settings in the control panel. In the dataURL section, click the link to 'show configuration data' This will open a window with a copy of your app's configuration data. c) This data should show the child items associated with each menu, etc. d) Copy and save this data (view source for plain text) to your BT_config.txt data in your Xcode project In Xcode: Clean All Target > Rebuild > Run
 
infiniteloop
Code is Art
Profile
Posts: 15
Reg: May 11, 2011
Miami
2,900
like
05/19/11 12:37 PM (14 years ago)
Yes, I tried all of that and for some reason it's still not working. Should I submit the config file if you don't mind taking a look at it to see what's wrong with it ? Thanks.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
05/20/11 01:09 AM (14 years ago)
I'll get a look. Nudge this post over the weekend if you don't see anything. Tomorrow's nutty-busy so no time till sat / sun.
 
infiniteloop
Code is Art
Profile
Posts: 15
Reg: May 11, 2011
Miami
2,900
like
05/20/11 05:14 AM (14 years ago)
Great, thank you David, I'll keep checking...it's weird because I even started a clean test app to see if that would work but it's not...the home screen menu doesn't show for any of my apps offline after following all the steps suggested...in the mean time if anyone else has a working offline version and doesn't mind sharing their config file to compare it to mine I'd greatly appreciate it.
 
infiniteloop
Code is Art
Profile
Posts: 15
Reg: May 11, 2011
Miami
2,900
like
05/22/11 12:43 PM (14 years ago)
Hello again David, did you get a chance to look at the config file ? Sorry for being a pain, but I would like to show a demo offline app at work tomorrow and I still haven't been able to get the Menu - list to show offline. Thanks.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
05/23/11 01:35 AM (14 years ago)
I see a problem with this (looking at Virtual College app) but have not found the issue / fix yet. Looking....hope to have a solution before your demo....
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
05/23/11 01:55 AM (14 years ago)
Got it! I don't yet understand what the problem is / was but I did get the Virtual College app working offline. I hope this is the app you're dealing with? First, what I did...next...at attempt at an explanation. a) I downloaded your project, compiled, run. No go, just like you said. Because you have no dataURL / reportToCloudURL in the apps core settings, it did not fetch anything from the server - as expected. But.. no menu item were displayed on the home screen. Again...just like you explained. b) I looked at the configuration data that came in the Xcode project. I compared this to the data that shows when you click the Show Configuration Data link in the Core screen in the control panel. Exactly the same - this is good. c) I looked for the 'child items' (the menu items for the home menu) and there were NOT in the configuration data. Things like maps, menus, lists, use Child Items for each thing in the list. The menu did not have any, the location map did. Hmmm... d) I re-created a new menu, added your existing screens to the new menu. The new menu was an attempt at creating an exact copy of the old menu. Next, I deleted the old menu and set the new menu as the apps home screen. This fixed it. Visit the Core Settings, show your config. data...copy it to the Xcode projects BT_config.txt. You could also just re-download the whole project? Be sure to add your 'main' image to the project. The explanation: About the only thing I can think of until I dig further is that because the menu you were using was the original menu that was created when you created the app (you did not use the control panel to create this menu, the backend did it for you) it must not be setting the child-items as expected. I say this because it worked perfect when I used the control panel to create a menu, then added the items to it. I'll need to escalate this a bit and get it figured out because surely somebody else will run into the same trouble and I'll be digging around on a weekend trying to find sometihng I 'forgot about' - too funny. You should be OK for your demo tomorrow. OFFLINE.
 
infiniteloop
Code is Art
Profile
Posts: 15
Reg: May 11, 2011
Miami
2,900
like
05/23/11 05:41 AM (14 years ago)
David, you are the man... that did it! You are right, that was the original menu that the app came with at creation. Also, I tried to create a new app from scratch, thinking I might have screwed the original one somehow, but I followed the same procedure of using the default menu that the app created, so I wasn't helping my own cause because I was just recreating the issue. Thank you very much for taking the time out of your weekend to help me out on this, and hopefully this information helps more people than just me.
 

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.