Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 8    Views: 63

MrT
Aspiring developer
Profile
Posts: 81
Reg: Jan 21, 2013
Dallas
3,010
03/03/13 03:20 PM (12 years ago)

Back button does not work with Word page

Hello everyone...I kept thinking i would figure this out on my own, but it's time to ask this question. When I navigate from a menu to a Word page my app gets stuck at that point. The back button does not work. I've fooled around with this and just can't get anywhere. I figure this is an easy fix but it's beyond me. Thoughts?
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
03/03/13 07:26 PM (12 years ago)
I'm guessing this is with Android? Because in iOS it should work just fine. I have seen in older versions of Android that when a file is opened up using an app outside the original app (as happens with Word/Excel/PDF documents), the back button doesn't work, because you're actually in a different app. Is that what you might be experiencing? If so, the user has to quit app that has the doc open, and reopen the original app. For what it's worth, that's not a problem on iOS, because it can open those file types natively. Mark
 
Outbreak
buzztouch Evangelist
Profile
Posts: 452
Reg: May 30, 2011
Colorado
14,620
like
03/03/13 10:17 PM (12 years ago)
If it still shows your Navigation bar, add a home button to the top right on your word plugins. Have it direct to your home menu. -Shane
 
MrT
Aspiring developer
Profile
Posts: 81
Reg: Jan 21, 2013
Dallas
3,010
like
03/04/13 04:50 PM (12 years ago)
Actually, i am working with iOS. Wish i could provide a more-detailed description but the back button is just not working on the Word Doc plugin.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
03/04/13 05:01 PM (12 years ago)
OK...so, let's do this. When you hit the back button, something should get written to the debug console. Can you post what that is? That'll help us debug a bit. Here's a doc that shows you how to use the debug console in case you're not familiar with it. https://www.buzztouch.com/files/howtos/Problem_Reporting_and_Basic_Debug_v1.0.pdf Mark
 
MrT
Aspiring developer
Profile
Posts: 81
Reg: Jan 21, 2013
Dallas
3,010
like
03/05/13 04:30 PM (12 years ago)
The back button shows up on the page but is not "live." Nothing happens when you click on it. Pasted below is the code that appears when you navigate to the Word Doc page and get stuck. Thanks for your assistance 2013-03-05 17:19:19.860 myfirstapp[296:c07] WB_screen_menuImage: didSelectRowAtIndexPath: Selected Row: 0 2013-03-05 17:19:19.861 myfirstapp[296:c07] BT_application: getScreenDataByItemId AB0BB825BDCAA53A875F95E 2013-03-05 17:19:19.861 myfirstapp[296:c07] BT_application: screenType is BT_screen_wordDoc for screen with nickname: "text for texas theater" and itemId: AB0BB825BDCAA53A875F95E 2013-03-05 17:19:19.861 myfirstapp[296:c07] BT_viewControllerManager: handleTapToLoadScreen 2013-03-05 17:19:19.862 myfirstapp[296:c07] BT_viewControllerManager: the parent screen nickname: "image menue for texas theater" itemId: B21478B00A04903B8A6623F itemType: WB_screen_menuImage 2013-03-05 17:19:19.862 myfirstapp[296:c07] BT_viewControllerManager: the menu/button tapped is itemId: 1492B07A31157BF3AD83F38 2013-03-05 17:19:19.862 myfirstapp[296:c07] BT_viewControllerManager: the screen to load is nickname: "text for texas theater" itemId: AB0BB825BDCAA53A875F95E itemType: BT_screen_wordDoc 2013-03-05 17:19:19.863 myfirstapp[296:c07] BT_viewControllerManager: initViewControllerForScreen nickname: "text for texas theater" itemId: AB0BB825BDCAA53A875F95E type: BT_screen_wordDoc 2013-03-05 17:19:19.863 myfirstapp[296:c07] BT_screen_wordDoc: INIT 2013-03-05 17:19:19.864 myfirstapp[296:c07] BT_navigationController: pushViewController 2013-03-05 17:19:19.864 myfirstapp[296:c07] BT_navigationController: pushViewController for screen: AB0BB825BDCAA53A875F95E 2013-03-05 17:19:19.865 myfirstapp[296:c07] BT_screen_wordDoc: viewDidLoad 2013-03-05 17:19:19.865 myfirstapp[296:c07] BT_viewUtilities: getWebNavBarForScreen with nickname: "text for texas theater" and itemId: AB0BB825BDCAA53A875F95E and type: BT_screen_wordDoc 2013-03-05 17:19:19.870 myfirstapp[296:c07] WB_screen_menuImage: viewWillDisappear in BT_viewController BASE CLASS 2013-03-05 17:19:19.870 myfirstapp[296:c07] BT_screen_wordDoc: viewWillAppear 2013-03-05 17:19:19.870 myfirstapp[296:c07] BT_viewUtilities: configureBackgroundAndNavBar for screen with nickname: "text for texas theater" and itemId: AB0BB825BDCAA53A875F95E and type: BT_screen_wordDoc 2013-03-05 17:19:19.872 myfirstapp[296:c07] BT_fileManager: File does exist in Xcode bundle: blank.png 2013-03-05 17:19:19.872 myfirstapp[296:c07] BT_background_view: Image for background view exists in Xcode bundle - not downloading. 2013-03-05 17:19:19.872 myfirstapp[296:c07] BT_background_view: setImage 2013-03-05 17:19:19.873 myfirstapp[296:c07] BT_screen_wordDoc: initLoad 2013-03-05 17:19:19.873 myfirstapp[296:c07] BT_fileManager: File does exist in Xcode bundle: test file for the JFK app.docx 2013-03-05 17:19:19.873 myfirstapp[296:c07] BT_screen_wordDoc: Loading file from Xcode bundle: test file for the JFK app.docx 2013-03-05 17:19:19.874 myfirstapp[296:c07] myfirstapp_appDelegate: supportedInterfaceOrientationsForWindow 2013-03-05 17:19:19.874 myfirstapp[296:c07] SHOULD NOT ROTATE 2013-03-05 17:19:19.875 myfirstapp[296:c07] BT_screen_wordDoc: canBecomeFirstResponder in BT_viewController BASE CLASS 2013-03-05 17:19:19.879 myfirstapp[296:c07] BT_screen_wordDoc: shouldStartLoadWithRequest: URL: file:///Users/macowner/Library/Application%20Support/iPhone%20Simulator/6.1/Applications/F2EFAF8C-066A-4EF8-AF2A-2F8A3F99A83E/myfirstapp.app/test%20file%20for%20the%20JFK%20app.docx 2013-03-05 17:19:19.880 myfirstapp[296:c07] BT_screen_wordDoc: shouldStartLoadWithRequest: SCHEME: file 2013-03-05 17:19:19.882 myfirstapp[296:c07] BT_screen_wordDoc: webViewDidStartLoad 2013-03-05 17:19:19.883 myfirstapp[296:c07] BT_screen_wordDoc: showProgress 2013-03-05 17:19:19.883 myfirstapp[296:c07] BT_viewUtilities: getProgressView 2013-03-05 17:19:19.904 myfirstapp[296:c07] BT_screen_wordDoc: webViewDidFinishLoad 2013-03-05 17:19:19.904 myfirstapp[296:c07] BT_screen_wordDoc: hideProgress 2013-03-05 17:19:20.230 myfirstapp[296:c07] BT_screen_wordDoc: viewDidAppear in BT_viewController BASE CLASS
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
03/05/13 04:34 PM (12 years ago)
Does the actual Word doc itself show up? I'm asking because I didn't think that iOS supported .docx files yet. On a side note, I suggest getting into the habit of naming files without special characters or spaces. This simply won't work for Android (everything has to be 0_9a_z), and seems to cause problems in iOS sometimes as well. I'd make everything lower case, with underlines instead of spaces. Mark
 
MrT
Aspiring developer
Profile
Posts: 81
Reg: Jan 21, 2013
Dallas
3,010
like
03/06/13 10:43 AM (12 years ago)
The word doc does show up; i just can't navigate away from it once i reach that destination. I'll go back and rename the files to take out the spaces and save as something other than .docx.
 
MrT
Aspiring developer
Profile
Posts: 81
Reg: Jan 21, 2013
Dallas
3,010
like
03/11/13 03:56 PM (12 years ago)
Just closing the loop on this one...i'm embarrassed but not surprised to report that it was a very simple issue on my part. I had made the header not visible and (unknown to me) that included the "back" button. There's also a back arrow at the bottom of the screen that is grayed out. When I made the header visible, i was able to see the "back" button and it works. I'm not sure what the arrow at the bottom of the screen is for or what you do if you don't want a header but do want a back button. But at least it's working for me. Thanks for the assistance.
 

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.