Discussion Forums  >  Uncategorized

Replies: 8    Views: 271

Moto4life14
Aspiring developer
Profile
Posts: 11
Reg: Apr 04, 2011
Chicago
110
04/08/11 12:59 PM (14 years ago)

Using User generated content

I'm a noob lol, but in the scheme of things, i have my app run some .doc files to fill a few screen with text, on the download off-line version (on my comp) i have added the files to where they go respectively, but when building the app it gives me a data for this screen has not been downloaded. Please check your internet connection. How do i tell it that the file is offline? Also, when it comes time to publish is there a way to make it run 100% offline, as all of my content will be in the app resources, not pulled from the net. Thanks in Advance:)
 
Moto4life14
Aspiring developer
Profile
Posts: 11
Reg: Apr 04, 2011
Chicago
110
like
04/08/11 02:04 PM (14 years ago)
If i rename my files as sample.doc, the app will load them, just not under any other name....wth..
 
Everest11
Code is Art
Profile
Posts: 195
Reg: Apr 04, 2011
GA, USA
1,950
like
04/08/11 02:08 PM (14 years ago)
Is your doc in the project document directory or are you using a URL?
 
Moto4life14
Aspiring developer
Profile
Posts: 11
Reg: Apr 04, 2011
Chicago
110
like
04/08/11 02:22 PM (14 years ago)
its placed in the BT_Docs folder, also same story for .pdf (works names as sample but not custom)
 
Everest11
Code is Art
Profile
Posts: 195
Reg: Apr 04, 2011
GA, USA
1,950
like
04/08/11 02:32 PM (14 years ago)
The configuration file may not be updating. Open up the BT_config directory then open the BT_config.txt file and scroll through it to look for the tab/screen information for the DOCS. You should see localFileName:sample.doc Change it to the custom name and re-run the app.
 
Moto4life14
Aspiring developer
Profile
Posts: 11
Reg: Apr 04, 2011
Chicago
110
like
04/08/11 02:57 PM (14 years ago)
I thought that would word for sure...but after trying it still no luck.. the code looks like: {itemNickname:Schedule, itemId:31456593476A4E46FB5260F, itemType:BT_screen_webView, navBarTitleText:Schedule, localFileName:home.doc}, {itemNickname:Absence Lines, itemId:C720DB9DF7C50D636319537, itemType:BT_screen_webView, navBarTitleText:Absence Lines, localFileName:sample.doc}, and the sample one loads fine, the home item still gives the please check your internet connection error.
 
Everest11
Code is Art
Profile
Posts: 195
Reg: Apr 04, 2011
GA, USA
1,950
like
04/08/11 03:24 PM (14 years ago)
how did you add the home. doc to the project? did you just drag it into the BT_Docs folder?
 
Moto4life14
Aspiring developer
Profile
Posts: 11
Reg: Apr 04, 2011
Chicago
110
like
04/08/11 03:40 PM (14 years ago)
and its official, i feel DUMB, i was adding the files with finder...you have to add them with xcode to put them into the project..my bad, but all is well now:D thanks.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
04/09/11 11:11 PM (14 years ago)
@Moto4life14: Not sure if you got the 'offline' part figured out. In the BT_config.txt file, in Xcode, remove the dataURL value and the reportToCloudURL value to force the app to work in offline mode only and never check for updates. Removing these will also remove the 'refresh' button from your apps home screen.
 

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.