Discussion Forums  >  Uncategorized

Replies: 22    Views: 359

easybusy
Aspiring developer
Profile
Posts: 41
Reg: Feb 12, 2011
italy
410
03/10/11 11:02 AM (14 years ago)

Configuration Data Could not be found PART 2 plus another question (app online)

I am very sorry but I need help again. Now the message configuration data could not be found appears only when I use the refresh button on simulator. When I launch the app the first time eveything is okay, but if I made something on buzztouch and I wish to see the change, when I use the refresh button appear the message. I need to close the simulator, rebuild on Xcode and then the app is okay. So, I guess that it will happen also on the device. I have checked the app setting but I think that everything is okay (I am not an expert!). The second question. If I wish to put on the web the app content what have I to to? Maybe it is a stupid question, sorry. Thanks in advance Guido
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
03/10/11 12:54 PM (14 years ago)
Don't be sorry, that's what this is all about. Most of these types of questions are related to our inability to spend the hours necessary putting together better (some?) documentation fo this kind of thing. Your confusion, misundertsanding, whatever it is is normal and expected. Firstly, your second question. I have no idea how you can 'put on the web' your app content. I'm not even sure what this means. The content in the app is yours, do you not have it anymore? In other words, where did you get the content to begin with? First question: If you're clicking the refresh button and the app tells you the data could not be found, it means that you're simulator is a) not connected to the internet, or b) you've changed the dataURL property in the configuration file. I'm guessing you didn't change the configruation file (in Xcode). If you did, then the app can't find the data at the URL you changed it too.
 
easybusy
Aspiring developer
Profile
Posts: 41
Reg: Feb 12, 2011
italy
410
like
03/10/11 01:26 PM (14 years ago)
Thanks for the reply, Sorry again but my english is not so good and my quastions are not very clear. First questions, in a previous topic you answer me: ... You will be much better off pulling content from the web, compiling images and files and movies and songs and other media is usually a bad idea. I am not sure what it does mean. I am working with html pages. I am doing a little tourist guide and for every locations I have created an html page with an image that I put in html folder on Xcode. So I mean, I can point for web content if I work with media but not with html pages? Second question (more important). My internet connection is okay and I dont'think that it does not work every time I push refresh button. I did not change the configuration file (I think) so what can I do? maybe re-download the application and transfer the content in new project? Thanks for your help Guido
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
03/10/11 01:35 PM (14 years ago)
This is confusing but we'll get through it. If you are putting your HTML files and images in the Xcode project, then pushing a refresh button on a Custom HTML screen, it isn't going to find any data (because it's in the Xcode project). In these cases, you don't want to show a refresh button on the screens (in the toolbar). Change this in the html screens advanced settings. These comments don't have anything to do with the refresh button on your apps home screen. Are you using the refresh button on the home screen or the refresh button on idividual HTML screens?
 
easybusy
Aspiring developer
Profile
Posts: 41
Reg: Feb 12, 2011
italy
410
like
03/10/11 01:52 PM (14 years ago)
I am using a refresh button on home screen. Every refresh button in individual html are off.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
03/11/11 02:32 AM (14 years ago)
OK, this is good, just needed to make sure. The Configuration Data could not be found worries me. I can't think of anything it could be? You could navigate your mac's directory structure and make sure the Simulator is saving the files OK (it must be if your connected). My machine keeps them here: /Users/davidbook/Library/Application Support/iPhone Simulator/4.2/Applications/THEAPPID/Documents Look through that folder, make sure the cachedAppConfig.txt file exists. This is what the app downloads from the web when you click refresh. Oh, another thing. There was some discussion awhile back about strange characters when typing in foreign languages. They were causing problems with the Objective-C. Could it be that the confiration file (titles, names, text that you type) contains something outside of the Western English language?
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
03/11/11 02:38 AM (14 years ago)
Please don't repost the same question in another thread. It's tough enough to keep up as it is ;-) See if my last post helps. I have no idea at this point. Clearly you're able to run and launch the other apps you've made, I'm going with the 'strange character' problem. Have a look at the data, your control panel, anywhere you may have entered something outside of the Western English character set. Objective-C freaks out with this.
 
easybusy
Aspiring developer
Profile
Posts: 41
Reg: Feb 12, 2011
italy
410
like
03/11/11 07:55 AM (14 years ago)
Thank you David and sorry for repetitive thread. i will try to fix the problem following your advice. Otherwise I will recompile another app with the same content. Thank you guido
 
easybusy
Aspiring developer
Profile
Posts: 41
Reg: Feb 12, 2011
italy
410
like
03/11/11 08:15 AM (14 years ago)
Hallo David, looking into the Simulator folder I found that in sub-folder Documents there are not the files: appModified.txt and cachedAppConfig.txt. I found that is empty comparing with the sub.folder Documents of my second app. I think that the proble is here but now what have I to do? Thank you guido
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
03/11/11 09:44 AM (14 years ago)
OK, so as I suspected earlier, the app is NOT downloading and saving the configuration file. Lets do this... launch the app and open the Console in Xcode (menu, view console). The Console will show all sorts of good info... maybe it will report an error when trying to save the data?
 
Annonymous
Profile
03/11/11 10:29 AM (14 years ago)
Hallo David, here you can find a list of error that I found, I think that ther's a problem downloading the data. I am sure that my internet connection is okay. I have tried to view the console live running my second app and everything is okay. Maybe the first app is too much big? sardiniabeachesguide_appDelegate: downloadFileStarted: starting download... BT_downloader: connection: didFailWithError: The request timed out. sardiniabeachesguide_appDelegate: downloadFileCompleted: Error sardiniabeachesguide_appDelegate: hideProgress sardiniabeachesguide_appDelegate: download error: There was a problem downloading data from the internet. BT_fileManager: doesLocalFileExist: cachedAppConfig.txt BT_fileManager: File does not exist in cached directory: cachedAppConfig.txt sardiniabeachesguide_appDelegate: There is no local data availalbe, application cannot launch. sardiniabeachesguide_appDelegate: hideProgress BT_locationManager: didFailWithError LocationUnknown BT_networkState: Monitoring Connection: WiFi Not Available BT_locationManager: didFailWithError LocationUnknown
 
easybusy
Aspiring developer
Profile
Posts: 41
Reg: Feb 12, 2011
italy
410
like
03/11/11 10:36 AM (14 years ago)
Hallo David, here you can find a list of errors that I found in the console. I think that the problem is downloading the data but I am sure that my internet connection is okay. I have tried to run my second app with the console live and everything is okay. Maybe the first app is too much big? BT_downloader: INIT BT_downloader: downloadFile: http://www.buzztouch.com/appdata/v1.5.php?command=getAppData&appGuid=&apiKey= guide_appDelegate: downloadFileStarted: starting download... guide_appDelegate: downloadFileCompleted: Error guide_appDelegate: hideProgress guide_appDelegate: download error: There was a problem downloading data from the internet. BT_fileManager: doesLocalFileExist: cachedAppConfig.txt BT_fileManager: File does not exist in cached directory: cachedAppConfig.txt guide_appDelegate: There is no local data availalbe, application cannot launch. guide_appDelegate: hideProgress BT_locationManager: didFailWithError LocationUnknown BT_networkState: Monitoring Connection: WiFi Not Available BT_locationManager: didFailWithError LocationUnknown
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
03/12/11 12:39 PM (14 years ago)
Hi again.... From this post it looks like BT_downloader is trying to download configuration data from http://www.buzztouch.com/appdata/v1.5.php?command=getAppData&appGuid=&apiKey= This URL does not have your appGuid or apiKey. If you removed them to not post them to the forum, OK. If you didn't, we need to figure out why their missing? Also, what app is this? Post the app name.
 
easybusy
Aspiring developer
Profile
Posts: 41
Reg: Feb 12, 2011
italy
410
like
03/12/11 02:33 PM (14 years ago)
Hallo David, I have removed appguid and apikey before post the message into the forum. the name of app is sardiniabeachguide. thanks guido
 
easybusy
Aspiring developer
Profile
Posts: 41
Reg: Feb 12, 2011
italy
410
like
03/12/11 02:35 PM (14 years ago)
pardon sardiniabeachesguide
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
03/12/11 03:38 PM (14 years ago)
Cool (glad to hear this, you don't want to show this info)... While I continue to figure this out... try this for now: a) Visit your control panel > Core Settings b) Click the link to show the configuration data c) Save this configuration data to a text file on your machine d) Open Xcode proejct and overwrite the BT_config.txt file with the contents of the configuration data you saved in step c e) REMOVE the dataURL value from the BT_config.txt file (so it won't try to download anything) Does this work?
 
easybusy
Aspiring developer
Profile
Posts: 41
Reg: Feb 12, 2011
italy
410
like
03/12/11 04:11 PM (14 years ago)
hallo David, unfortunately it does not work. The console shows this message: 2011-03-13 00:05:26.306 sardiniabeachesguide[1354:207] BT_application: initializing buzztouch application 2011-03-13 00:05:26.309 sardiniabeachesguide[1354:207] BT_device: INIT 2011-03-13 00:05:26.310 sardiniabeachesguide[1354:207] BT_device: This device is NOT an iPad. 2011-03-13 00:05:26.311 sardiniabeachesguide[1354:207] BT_device: This device can make phone calls 2011-03-13 00:05:26.323 sardiniabeachesguide[1354:207] BT_device: This device can send emails 2011-03-13 00:05:26.324 sardiniabeachesguide[1354:207] BT_device: This device cannot send SMS 2011-03-13 00:05:26.371 sardiniabeachesguide[1354:207] BT_device: This device can reports it's location 2011-03-13 00:05:26.373 sardiniabeachesguide[1354:207] BT_device: This device cannot take pictures or videos 2011-03-13 00:05:26.373 sardiniabeachesguide[1354:207] BT_user: INIT 2011-03-13 00:05:26.375 sardiniabeachesguide[1354:207] BT_networkState: INIT 2011-03-13 00:05:26.380 sardiniabeachesguide[1354:207] BT_networkState: Monitoring Connection: WiFi Not Available 2011-03-13 00:05:26.381 sardiniabeachesguide[1354:207] BT_networkState: Monitoring Connection: WiFi Available 2011-03-13 00:05:26.381 sardiniabeachesguide[1354:207] BT_networkState: Monitoring Connection: WiFi Available 2011-03-13 00:05:26.382 sardiniabeachesguide[1354:207] BT_locationManager: INIT (only initializing, not using) 2011-03-13 00:05:26.385 sardiniabeachesguide[1354:207] sardiniabeachesguide_appDelegate: refreshAppData 2011-03-13 00:05:26.385 sardiniabeachesguide[1354:7003] sardiniabeachesguide_appDelegate: loadSoundEffects 2011-03-13 00:05:26.386 sardiniabeachesguide[1354:207] BT_fileManager: doesLocalFileExist: cachedAppConfig.txt 2011-03-13 00:05:26.387 sardiniabeachesguide[1354:207] BT_fileManager: File does not exist in cached directory: cachedAppConfig.txt 2011-03-13 00:05:26.388 sardiniabeachesguide[1354:207] BT_fileManager: doesFileExistInBundle: BT_config.txt 2011-03-13 00:05:26.388 sardiniabeachesguide[1354:207] BT_fileManager: File does exist in Xcode bundle: BT_config.txt 2011-03-13 00:05:26.389 sardiniabeachesguide[1354:207] BT_fileManager: readTextFileFromBundle: BT_config.txt 2011-03-13 00:05:26.396 sardiniabeachesguide[1354:207] BT_application: validateApplicationData 2011-03-13 00:05:26.385 sardiniabeachesguide[1354:6d03] sardiniabeachesguide_appDelegate: initAudioPlayer in background thread 2011-03-13 00:05:26.398 sardiniabeachesguide[1354:6d03] BT_audioPlayer: INIT (only initializing, not using) 2011-03-13 00:05:26.421 sardiniabeachesguide[1354:207] BT_application: validateApplicationData: ERROR: The BT_appConfig data cannot be parsed? 2011-03-13 00:05:26.424 sardiniabeachesguide[1354:207] sardiniabeachesguide_appDelegate: error parsing bundle application data: BT_config.txt 2011-03-13 00:05:26.425 sardiniabeachesguide[1354:207] sardiniabeachesguide_appDelegate: applicationDidBecomeActive 2011-03-13 00:05:26.426 sardiniabeachesguide[1354:207] sardiniabeachesguide_appDelegate: reportToCloud 2011-03-13 00:05:26.426 sardiniabeachesguide[1354:207] sardiniabeachesguide_appDelegate: not reporting to cloud, no reportToCloudURL 2011-03-13 00:05:26.749 sardiniabeachesguide[1354:207] BT_networkState: Monitoring Connection: WiFi Not Available In the meantime I have revised every screen name searching strange character but everything seems okay. PS. The config.txt is very big (57 pages!) Thank you
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
03/13/11 10:27 AM (14 years ago)
OK... I downloaded your app and follwed the instructions in my last post. It does look like there is a problem downloaded the MASSIVE configuration file. This is why I recommended NOT using the dataURL to see if it would launch. Follow the instructions in the last post - overwrite the BT_config.txt file the the configuration data that loads when you visit the Core Settings > Configuration Data URL in the control panel. Then, REMOVE the dataURL in this text file. This will tell the app not to download anything. I just did this and the app works. I'm sending you this file in an email in case you don't understand this.
 
easybusy
Aspiring developer
Profile
Posts: 41
Reg: Feb 12, 2011
italy
410
like
03/13/11 11:26 AM (14 years ago)
Thanks David. It works fine. When I've tried I removed all command line. The question is, I am still working with this app, if I use this config.txt I can't see any changes made on buzztouch? Thanks again guido
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
03/14/11 12:32 AM (14 years ago)
Hi again... So...you're getting a good understanding now. YES, this will PREVENT the app from getting any updates. Not what we want long term but a necessary step during this very difficult diagnosis. You're comment the other day about the SIZE of the content you were downloading got me thinking. And yes, I had no idea how LARGE you were talking. Yikes. I have made several more adjustments to your project to try to accomodate your needs. You should have no trouble downloading now ( I just tested again). Please get the latest project source-code (redownload your project), complile, then smile when it works. I do have some concerns though. If a device user taps the refresh button on a cellular network there is NO WAY the data will download. You really do have an extreme amount. I realize you have worked very hard at this and I commend you for that but you'll need to figure out a new strategy if you want to have hundreds and hundreds of content files in your application. I also question the usefulness of such an application. 500 screens, really? You could consider RSS feeds or another backend technology to feed the application in a more effecient way if it doesn't work out. Or, maybe create several smaller apps to accomplish the same thing? Dunno, just thinking. Hope this helps.
 
easybusy
Aspiring developer
Profile
Posts: 41
Reg: Feb 12, 2011
italy
410
like
03/14/11 08:54 AM (14 years ago)
Hallo David, thanks for your help. Yes, I think that the app is really big. Last couple of questions. The app is a simple (!) guide, a list of more than 200 beaches in my region, for each beach there is an html page and a gps information page. If I complete the app in that way, when someone will download it from appstore (I hope), he will obtain the whole project (included html pages etc)? the refresh button is really necessary? the app should work in offline mode or not? Thanks for your great help I am going to download the new project guido ps. rss feeds needs website to point the information - which are other backend tecnologies? thanks again
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
03/14/11 10:08 AM (14 years ago)
Hi guido, I do think you could just REMOVE the dataURL after completing your app so the users don't need to re-download anything. Like you mentioned. This is a good idea. 'what are other backend technologies' - not sure what this means?
 
easybusy
Aspiring developer
Profile
Posts: 41
Reg: Feb 12, 2011
italy
410
like
03/14/11 10:38 AM (14 years ago)
Hi David, in the previous post you said to me consider Rss feeds or another bsckend technology..., so I thought that there is an other option instead of rss feeds. thanks guido
 

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.