Becky
I hate code!
Profile
Posts: 269
Reg: Aug 08, 2012
NYC
6,140
06/27/18 04:18 PM (6 years ago)

White Screen on launch and refresh

When launching my app on the simulator, I get a white screen. Once I test the json, I recieve this error: SyntaxError: Duplicate key 'itemId' on line 45 "BT_screens": [{ "itemId": "075284EBBBA0F3BFC15CFD7", "itemType": "Cr_menu_advanced", "itemNickname": "Main", "itemId": "075284EBBBA0F3BFC15CFD7", "itemType": "Cr_menu_advanced", "itemNickname": "Main", I fix the json and relaunch the app and it works. But it always reverts back to the white screen once refreshed or relaunched. It's driving me insane.
 
mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
like
06/29/18 07:01 AM (6 years ago)
What do you mean by "fix the json and relaunch"? Where are you fixing it? If you fix it in xcode it will build fine, but if still duplicated in the config data on BT then when you refresh the app you'll get the white screen again. You can't manually edit the json data on BT so I usually just delete the item that is duplicated and re add it.
 
Sherry
Lost but trying
Profile
Posts: 135
Reg: Jan 05, 2013
South Africa
11,650
like
07/02/18 03:41 AM (6 years ago)
Is the white screen you're talking about not the loading screen. If you're seeing a white screen with a little progress spinner then it's the loading screen. I managed to add an image to mine on xcode by editing BT_loading.storyboard under BT_Screens - bt_loading. I added an Image View to the storyboard and set the Image Property of the Image View to a png image which I had previously dragged into xcode so now instead of just a white screen people can at least see a picture of my logo with the word LOADING...
 

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.