Starbeetle
Code is Art
Profile
Posts: 26
Reg: Jul 28, 2012
Sydney
260
07/03/13 09:28 PM (10 years ago)

Custom URL won't work

I have entered the url I want to load for custom url on the buzztouch control panel. And i open my project with xcode and i click the tab i have made with a custom url and the page is just blank... sorry if i didnt explain well but here is a picture: http://puu.sh/3uEQW.png see the page is blank?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
07/03/13 10:09 PM (10 years ago)
It almost looks as if no plugin at all is loaded. If you created your app according to the installation.pdf file that came with your app download, you should be good. If not, you'll want to refer to that to make sure you haven't missed any critical steps. If you've already done all that, you may want to check up on your control panel, or refresh your app. It's possible you have made changes to the app in the control panel, but those changes haven't been downloaded to the device yet. Cheers! -- Smug
 
Tony @ Buzztouch
buzztouch Evangelist
Profile
Posts: 528
Reg: Mar 05, 2011
Saint Louis, Mi...
24,620
like
07/03/13 10:41 PM (10 years ago)
Starbeetle, Did you drag over the plugin folder to xcode? Tony
 
Starbeetle
Code is Art
Profile
Posts: 26
Reg: Jul 28, 2012
Sydney
260
like
07/03/13 10:44 PM (10 years ago)
Hi Smug, An Installation.pdf file, you say? I don't think I got one. (EDIT: I found it, it was called instructions.pdf) will this be any help? Especially with my problem? ---- I have refreshed my app many times and re opened the iOS simulator in Xcode. Check up on my control panel? I have checked many times and I don't think their is a problem. Although I am a noobie at this stuff. ---- I made changes to the app in the BuzzTouch control panel. Some changes worked but this Custom URL thing isn't! It's a pain... Thanks - Starbeetle
 
Starbeetle
Code is Art
Profile
Posts: 26
Reg: Jul 28, 2012
Sydney
260
like
07/03/13 10:45 PM (10 years ago)
Hi Tony, Yes I have done that. - Starbeetle
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
07/04/13 06:46 AM (10 years ago)
Check your BT_config.txt file in Xcode to make sure it is complete. If not, you'll need to copy and paste from your app's control panel.
 
Starbeetle
Code is Art
Profile
Posts: 26
Reg: Jul 28, 2012
Sydney
260
like
07/04/13 06:07 PM (10 years ago)
@chris1 Everything is complete and fine... is it because i've done something wrong in the buzztouch control panel? :/ I really need help Thanks again!
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
07/04/13 06:10 PM (10 years ago)
For the record, you kind of don't want to publish your API/Secret key for BT. It's a security thing if someone wants to start problems. Edit and remove or change that. Cheers! -- Smug
 
Starbeetle
Code is Art
Profile
Posts: 26
Reg: Jul 28, 2012
Sydney
260
like
07/04/13 06:14 PM (10 years ago)
@Smug Sorry, removed it. Do you know the problem here? I desperately need help! Do you think i've done something wrong in the BT control panel? :\
 
Starbeetle
Code is Art
Profile
Posts: 26
Reg: Jul 28, 2012
Sydney
260
like
07/04/13 06:15 PM (10 years ago)
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
07/04/13 06:17 PM (10 years ago)
I only see one item; the menu. The menu has two items, but those items (plugins) are not present in the config file. So, your app is calling for plugins that as of yet do not exist (as far as your config file is concerned). Add those plugins to your app. configure them. Try it again... Your config file should look similar to this: "BT_screens": [ { "itemId": "20B9C7DE78E02EAC8E769FF", "itemType": "BT_screen_menuListSimple", "itemNickname": "Home Screen Menu", "navBarTitleText": "Home", "childItems": [ { "itemId": "91EFE735AC047C9BBF05E3C", "itemType": "BT_menuItem", "loadScreenWithItemId": "ThisNeedsToMatchTheDesiredScreenItemId", "titleText": "Blank Screen" }, { "itemId": "37CB06C74994A93804A5005", "itemType": "BT_menuItem", "loadScreenWithItemId": "SomeDifferentItemId", "titleText": "Item #2" } ] }, { "itemId": "ThisNeedsToMatchTheDesiredScreenItemId", "itemType": "BT_screen_htmlDoc", "itemNickname": "Reef Safety", "navBarTitleText": "Reef Safety Tips", "localFileName": "reef.html", "backgroundColor": "#834618" }, { "itemId": "SomeDifferentItemId", "itemType": "BT_screen_htmlDoc", "itemNickname": "About", "navBarTitleText": "About", "localFileName": "about.html" }, You may have questions if this doesn't make sense; fire away :) Cheers! -- Smug
 
Starbeetle
Code is Art
Profile
Posts: 26
Reg: Jul 28, 2012
Sydney
260
like
07/04/13 06:17 PM (10 years ago)
Alright let me try.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
07/04/13 06:20 PM (10 years ago)
And Remember, every 'screen' needs a plugin. So, even if your app uses 20 HTML pages, you'll need 20 HTML Plugin Screens added to your project; each with the description of the HTML page you want displayed. Keep in mind if you DO have 20 (or more) HTML Pages, the code will only have 'one' HTML plugin that is used. But it will use the 20 configurations to make them all 'unique'... Cheers! -- Smug
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
07/04/13 06:22 PM (10 years ago)
As an added suggestion, you may want to take a moment and watch the BT University Videos on how it all gets put together. That should clear up a few questions you'll have... https://www.buzztouch.com/account/btu.php They're free, and invaluable as well. :) Cheers! -- Smug
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
07/04/13 06:23 PM (10 years ago)
Side note, but is the Buzztouch secret API key all that secret? Anyone can easily see any BT app's entire BT_config.txt with any text viewer, which inudes that key.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
07/04/13 06:29 PM (10 years ago)
Chris, Lol! I've often wondered about that myself, heh. But I figured if it wasn't a secret they'd call it the 'APIPublic' key :) Cheers! -- Smug
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
07/04/13 06:34 PM (10 years ago)
Yep - if it were really important, I suppose one could encrypt the config data.
 
Starbeetle
Code is Art
Profile
Posts: 26
Reg: Jul 28, 2012
Sydney
260
like
07/04/13 06:40 PM (10 years ago)
I'm sorry but I'm still kinda stuck on what I am really doing.. I've tried starting from fresh and ... eh.. not working really :( .. I'll explain what I have done First I went to "Screens / Actions" then I clicked "Add New" and made a new item and the nickname was "Angel Beats!" ... Chose the plugin type: "Custom URL" pressed "Add". Second I went to "Home Screen Menu" Screen I made for my 'App Home Screen'(it works perfectly fine) and then I created a "Row Title" and named it "Angel Beats!" as well. I chose that I had an existing screen. And chose "Angel Beats!" (the Custom URL 'plugin thing' I made before) and pressed "Add". I'm obviously missing many steps here. I'm really sorry... I'm new to this and I'm trying to make an Anime Wallpaper App. ^_^ So what am I missing here? I appreciate the help! - Starbeetle
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
07/04/13 06:55 PM (10 years ago)
Well, it sounds like you have the concept down, but you must be missing some small detail that's keeping everything from working. I truly suggest watching the BTU videos; they'll make sense of all of this. I created a quickie video to show you how, but it's about 80MB, so it'll take a while to upload (I live on a tiny pacific island) Cheers! -- Smug
 
Starbeetle
Code is Art
Profile
Posts: 26
Reg: Jul 28, 2012
Sydney
260
like
07/04/13 06:57 PM (10 years ago)
So. You made a video for me about the Custom URL plugin or something and you are uploading it? Thanks, Smug. :) Side note: I did watch some BTU videos but some of them were down(as in not working)... - Starbeetle
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
07/04/13 06:59 PM (10 years ago)
Now that you mention it, it uses the generic HTML plugin... however, the concept is the same for all plugins, so Custom URL, or whatever, it's all the same. The upload has about 10 more minutes on it. Cheers!
 
Starbeetle
Code is Art
Profile
Posts: 26
Reg: Jul 28, 2012
Sydney
260
like
07/04/13 07:01 PM (10 years ago)
Alright! Thank you! I'll check it out when it uploads! - Starbeetle
 
Starbeetle
Code is Art
Profile
Posts: 26
Reg: Jul 28, 2012
Sydney
260
like
07/04/13 07:12 PM (10 years ago)
Where will the video go when it is uploaded? ? ?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
07/04/13 07:15 PM (10 years ago)
Wow. Finally. https://dl.dropboxusercontent.com/u/115208762/quikscreen.mov and to think it's only 2 minutes long. I could really use a better internet connection :) Cheers! -- Smug
 
Starbeetle
Code is Art
Profile
Posts: 26
Reg: Jul 28, 2012
Sydney
260
like
07/04/13 07:20 PM (10 years ago)
oh okay thanks!
 
Starbeetle
Code is Art
Profile
Posts: 26
Reg: Jul 28, 2012
Sydney
260
like
07/04/13 07:53 PM (10 years ago)
Umm wow. Now my whole application isn't working.. My screen is blank white... I don't have a menu or anything... Still trying to fix it..
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
07/04/13 07:59 PM (10 years ago)
Hmm... Make sure your menu, or whatever is your home screen is listed in 'layout' as the home screen. Big Detail. Cheers! -- Smug
 
Starbeetle
Code is Art
Profile
Posts: 26
Reg: Jul 28, 2012
Sydney
260
like
07/04/13 08:00 PM (10 years ago)
That fixed the screen thanks!! But still. no page loading.. :/ ill try again but... still. :\ ? weird .. weird.. Thanks for helping though! - Starbeetle
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
07/04/13 08:06 PM (10 years ago)
It does seem odd. Bottom line: your config file. It tells the app all the details about what it's going to do with which plugins. In a broader sense its just a lot of daisy chaining things together. But if things aren't connected together then the config won't be correct. So we need to focus on getting that correct. You can look at the config file before testing it on the device/simulator by looking at the 'configuration data' screen. It holds all the JSON (a data format) configuration data for your app. It looks a bit convoluted on the BT Screen, so I usually copy and paste it into a JSON Formatter, typically at www.jsonlint.com; it makes it far easier to view and digest. See if that helps you understand how it comes together any... Cheers! -- Smug
 
Starbeetle
Code is Art
Profile
Posts: 26
Reg: Jul 28, 2012
Sydney
260
like
07/04/13 08:07 PM (10 years ago)
Here are some pictures http://puu.sh/3vmws.png (picture of me trying to 'fix' the Custom URL plugin for "Angel Beats!")(my custom url works fine on the browser Safari, FYI.) http://puu.sh/3vmyr.png ("Manage Screens" Section) Side note: I'm using the iOS simulator(in Xcode) to test if the Custom URL is working(which it's not)... do you think it's because it's the iOS simulator in Xcode that doesn't load it?
 
Starbeetle
Code is Art
Profile
Posts: 26
Reg: Jul 28, 2012
Sydney
260
like
07/04/13 08:09 PM (10 years ago)
I did what you told me and ... http://puu.sh/3vmDS.png
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
07/04/13 08:10 PM (10 years ago)
Could you show me the screen shot of the menu plugin control panel? Cheers! -- Smug Nah, I usually test on my simulator until I need actual geocoordinates, then I use my iPad or phone. It usually works fine. In your earlier post, your screens weren't in your config file, so it really wouldn't have mattered what you tried on; it wasn't going to appear.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
07/04/13 08:12 PM (10 years ago)
And show me a screen shot of JSON lint (without your app details, the stuff at the very top. I just want to see the stuff from 'tabs' on down...) Cheers! -- Smug
 
Starbeetle
Code is Art
Profile
Posts: 26
Reg: Jul 28, 2012
Sydney
260
like
07/04/13 08:12 PM (10 years ago)
Here you go, Smug. http://puu.sh/3vmJV.png Side note: Do you think Data URL has to do with anything?
 
Starbeetle
Code is Art
Profile
Posts: 26
Reg: Jul 28, 2012
Sydney
260
like
07/04/13 08:15 PM (10 years ago)
And here you go again: http://puu.sh/3vmNJ.png is that what you meant? p.s. I hid my app detail stuff... like my api ... i cut the half of it out :) - Starbeetle
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
07/04/13 08:17 PM (10 years ago)
Well, the 'DataURL' is the address you give it for resources 'not held within the app'. So, your menu won't use it, but your CustomURL plugin will use your tinyurl address in the 'dataURL' field. Cheers! -- Smug
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
07/04/13 08:18 PM (10 years ago)
It's only showing to the theme... I'll need to see the rest. Could you just paste it? Just the part 'after' "BT_tabs": [] Cheers! -- Smug
 
Starbeetle
Code is Art
Profile
Posts: 26
Reg: Jul 28, 2012
Sydney
260
like
07/04/13 08:21 PM (10 years ago)
1. So fill in the 'Data URL' part? 2. Here you go: "BT_tabs": [], "BT_screens": [ { "itemId": "EDCF190AE5F4237C8EF1354", "itemType": "BT_screen_menuListSimple", "itemNickname": "Anime Categories", "navBarTitleText": "Anime Categories", "navBarBackgroundColor": "#0099FF", "navBarStyle": "solid", "preventAllScrolling": "0", "backgroundImageURLSmallDevice": "http://animepapers.org/images/animepapersorgwallpaper-art-anime-naruto-shippuden-the-lightning-slayer-167335-aladdin-hires-1e05d97a-wallpaper-for-960x640-android-78-4244.jpg", "childItems": [ { "itemId": "6E45F7C57D10F48E9A6C87C", "itemType": "BT_menuItem", "loadScreenWithItemId": "469501AFEF75966843A416F", "titleText": "Angel Beats!" } ] }, { "itemId": "469501AFEF75966843A416F", "itemType": "BT_screen_customURL", "itemNickname": "Angel Beats! Screen", "navBarTitleText": "Angel Beats!", "navBarBackgroundColor": "#FF0066", "navBarStyle": "solid", "navBarRightButtonType": "home", "navBarRightButtonTapLoadScreenNickname": "Anime Categories", "navBarRightButtonTapLoadScreenItemId": "EDCF190AE5F4237C8EF1354", "dataURL": "http://tinyurl.com/krzjxp3", "showBrowserBarBack": "1", "showBrowserBarRefresh": "1", "forceRefresh": "1", "preventAllScrolling": "0", "preventUserInteraction": "0" } ] } ] } }
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
07/04/13 08:27 PM (10 years ago)
That looks like it should work. But be sure that the first thing you do when your app launchs, is refresh the data with the refresh button in the upper left part of the menu bar. Cheers! -- Smug
 
Starbeetle
Code is Art
Profile
Posts: 26
Reg: Jul 28, 2012
Sydney
260
like
07/04/13 08:29 PM (10 years ago)
Still a blank screen ??? It has the Top bar and everything but no text and my app background but no loading of my tinyurl !?!
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
07/04/13 08:34 PM (10 years ago)
Hmm... If the 'Title Bar' (the top bar) has 'Angel Beats!' as a title, but no URL is showing, then I would suggest using a different URL just to find out if the internal browser doesn't like short URLs. use something generic like 'mobile.google.com' or something that you *know* works, and then try it. Let's find out. Cheers! -- Smug Edit: remember to refresh your app on launch, so that the app gets the latest config data.
 
Starbeetle
Code is Art
Profile
Posts: 26
Reg: Jul 28, 2012
Sydney
260
like
07/04/13 08:38 PM (10 years ago)
Oh their is not even text I said before... and still same problem? :/
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
07/04/13 08:42 PM (10 years ago)
Really? Hmmm... If that's the case, then I kind of need to ask if you added plugins to your app. They can't just be 'copied' over, they need to be 'added' in a particular way, otherwise it won't work. Mark (GoNorthWest) did a pretty good write up on adding resources to iPhone and Android platforms. Take a snoop at it and make sure you've added those correctly. https://www.buzztouch.com/files/howtos/Adding_Files_To_A_Project_v1.0.pdf Cheers! -- Smug ps, take a look at this image; your app should appear 'similar'. https://dl.dropboxusercontent.com/u/115208762/xcodebundle.png
 
Starbeetle
Code is Art
Profile
Posts: 26
Reg: Jul 28, 2012
Sydney
260
like
07/04/13 08:45 PM (10 years ago)
I have looked at that before and I don't know if that really helps?? or i just simply don't understand it..? And i have all those folders in Xcode, yes.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
07/04/13 08:51 PM (10 years ago)
Well, the boxed directories are those that 'come' with your project. The directories with arrows are directories that are 'included' with your project, but they're not 'in' your project; they have to be added. The way you add them is to start up your app in Xcode, and while your app is running, 'Drag' those directories onto your project name (on the left side). Xcode will throw up a dialog, and you uncheck (if checked) the 'copy', but otherwise, press 'OK' and you should be good. You may want to download a new app package and start over from scratch. This might clear out a few cobwebs that may remain in your system and cause unusual reactions. Cheers! -- Smug
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
07/04/13 08:58 PM (10 years ago)
Here is a nice video that shows how this works rather well... http://www.youtube.com/watch?v=45sGFg0gABs Cheers! -- Smug
 
Starbeetle
Code is Art
Profile
Posts: 26
Reg: Jul 28, 2012
Sydney
260
like
07/04/13 09:48 PM (10 years ago)
Got it working... somehow? I deleted everything and re-tried so yeah google.com.au wasn't working so I tried http://google.com.au ... looks like i had to add http or something? Thanks Smug!
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
07/04/13 10:03 PM (10 years ago)
I'm glad it's working for you. Sometimes it's hard to troubleshoot something you've never seen work before, so I know how frustrating it might have been for you :) Now that you've seen what it's supposed to do, incremental changes will start to make sense and you shouldn't run into this again. But if you do have issues, just stop by and yell. There's always someone around who is happy to help, and you and I are about the same time zone, so that might be a good thing. Cheers! -- Smug
 
Starbeetle
Code is Art
Profile
Posts: 26
Reg: Jul 28, 2012
Sydney
260
like
07/04/13 10:05 PM (10 years ago)
Thank you VERY much for your help Smug(and everyone)! It means a lot! - Starbeetle
 

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.