Discussion Forums  >  Config Data, JSON, App Refresh

Replies: 6    Views: 149

Kahuna
Apple Fan
Profile
Posts: 137
Reg: Nov 18, 2011
Milan
4,670
12/18/12 04:00 PM (13 years ago)

What's wrong with this JSON?

I'm pulling the menu from my dropbox; the menu gets proper configuration but my app crashes when I try to open the custom url (the menu item). Any suggestion? I've made the same thing with pdf documents downloaded from url and they worked. Any suggestion? {"childItems": [ { "itemID": "10002", "itemType": "BT_menuItem", "titleText": "D02", "rowAccessoryType": "none", "loadScreenObject": { "itemID": "20002", "itemType": "BT_screen_customURL", "itemNickname": "TWD02", "navBarTitleText": "TWD02", "dataURL": "http://mysite.video.com", "forceRefresh": "1" } }, { "itemID": "10003", "itemType": "BT_menuItem", "titleText": "D03", "rowAccessoryType": "none", "loadScreenObject": { "itemID": "20003", "itemType": "BT_screen_customURL", "itemNickname": "TWD3", "navBarTitleText": "TWD3", "dataURL": "http://mysite.video.com", "forceRefresh": "1" } } ] }
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
12/18/12 04:24 PM (13 years ago)
 
Kahuna
Apple Fan
Profile
Posts: 137
Reg: Nov 18, 2011
Milan
4,670
like
12/18/12 04:39 PM (13 years ago)
Thank you Danny!It helped me. I think it's the same issue, even if my menu comes from the "menu with image" plugin.
 
Kahuna
Apple Fan
Profile
Posts: 137
Reg: Nov 18, 2011
Milan
4,670
like
12/18/12 05:42 PM (13 years ago)
I tested the same json structure using BT_screen_htmlDoc and pdfDoc instead of the BT_screen_customURL and they 're working fine. So there has to be something in the customurl which I don't get.
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
12/18/12 05:57 PM (13 years ago)
Hi, Never worked this way so I don't have a definitive answer. You could try to create whatever you want to achieve within the Control panel and then have a look at the json. Next use that json in your external file and see if it works (or not). Hope this helps. Best Regards, Danny
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
12/18/12 10:33 PM (13 years ago)
Hi @Kahuna, If the app is crashing, there should be some debug data in the Console at the time of the crash that will help you/us figure out the problem. Can you post anything of interest you see there? Mark
 
Kahuna
Apple Fan
Profile
Posts: 137
Reg: Nov 18, 2011
Milan
4,670
like
12/19/12 09:00 AM (13 years ago)
Hi @GoNorthWest, thank you for partecipating.
 

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.