Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 15    Views: 75

Red Dog
buzztouch Evangelist
Profile
Posts: 805
Reg: Jun 16, 2011
Southern Califo...
18,800
12/14/14 08:29 PM (9 years ago)

Load different plugin for different iOS device size?

I really want to use Chris1's tumblr plugin in my app, but it is iPhone only. Unfortunately my app is universal for iPhone and iPad. My home screen is a button menu. Is there an easy way to say when menu item tapped; if iPhone load CR_Tumblr_Menu, if iPad load BT_screen_menuListSimple ? Thank you.
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
12/14/14 11:10 PM (9 years ago)
@Red Dog: I wrote a plugin named "Launch Screen" to deal with this situation: http://www.buzztouch.com/plugins/plugin.php?pid=8901C4D9F816959026BE5D9 Does this plugin work for you? Jake
 
Red Dog
buzztouch Evangelist
Profile
Posts: 805
Reg: Jun 16, 2011
Southern Califo...
18,800
like
12/15/14 12:11 AM (9 years ago)
Hi Jake. Do you have a demo vid? I can't tell from the 2 pics how configurable your plugin is? Can it be a single clear button over a background image? Button size changeable? Etc?
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
12/15/14 08:10 AM (9 years ago)
@Red Dog, Here is how the plugin works: you create an instance of Launch Screen, then you link any other button in your app (nav button or any plugin which can load a screen) to the Launch Screen. In the Launch Screen settings, you then configure what screen you would like to display when the user is using an iPad or and iPhone (or more specific devices). The user will never see the Launch Screen plugin, they will only see the plugin that you desire to load on their particular device. Here is an screen shot of the images in the control panel: http://jakeserver.com/Uploads/Buzztouch/JC_LaunchScreen_Control_Panel.png Does this help? Jake
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
12/15/14 11:22 AM (9 years ago)
Very nice, Jake! Thanks for the explanation, I was oblivious to this plugin's functionality. To make it be more obvious, I would rename the Plugin to be "Redirector". I like it !!! Its good to hear from you. :-) -- Niraj
 
NCbuzz
Code is Art
Profile
Posts: 575
Reg: Sep 11, 2013
Lillington, NC
11,100
like
12/16/14 02:11 PM (9 years ago)
I had not checked out the LaunchScreen plugin. Sounds great. Definitely worth getting. Quick question on the locking a screen until date: does it use Device or Network date and time? Thanks!
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
12/16/14 06:38 PM (9 years ago)
@NCbuzz: I used NSDate to check if the date has passed. I believe that NSDate relies on the device's internal clock to determine the date. Jake
 
NCbuzz
Code is Art
Profile
Posts: 575
Reg: Sep 11, 2013
Lillington, NC
11,100
like
12/16/14 06:45 PM (9 years ago)
Thanks Jake. I had noticed a discussion last week regarding a way to insure the user had not changed the date in order to access the screen: https://www.buzztouch.com/forum/thread.php?tid=3E76B5BA250FBB065C73ECF&command=isSearching&currentPage=1&topicTitle=date&createdBy=&repliedBy=&minViews=-1&maxViews=-1&minReplies=-1&maxReplies=-1&forumCategory= Wonder how easy it would be to incorporate in the plugin?
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
12/16/14 06:58 PM (9 years ago)
@NCbuzz: After doing some quick research, I believe there is a way to do this, which would allow the app to use a specified time server to determine if the time has passed. However, there is a major catch with this method: the user must have an internet connection every time they try to access the screen, and if they do not, there will not be a way for the device to determine what time it is, and they will not be able to access the screen. However, at this time, network timing, is not a standard feature that is included with the plugin. Please let me know if you would like any more information. Thanks, Jake
 
Red Dog
buzztouch Evangelist
Profile
Posts: 805
Reg: Jun 16, 2011
Southern Califo...
18,800
like
12/16/14 07:05 PM (9 years ago)
Hi Jake. Thanks for the explanation of this plugin. It sounds like it will do exactly what I need. I will install it next week.
 
Red Dog
buzztouch Evangelist
Profile
Posts: 805
Reg: Jun 16, 2011
Southern Califo...
18,800
like
12/27/14 11:03 AM (9 years ago)
-edited-
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
12/27/14 11:08 PM (9 years ago)
@RedDog: Yes, this plugin as been tested on iOS 8.1 with both iPads and iPhones. Link to iPad demo: http://jworldhosting.com/Uploads/Buzztouch/LaunchScreen_iOS81.mov If you posted a video of the errors that you are encountering, I may be able to help you debug your problem. Jake
 
Red Dog
buzztouch Evangelist
Profile
Posts: 805
Reg: Jun 16, 2011
Southern Califo...
18,800
like
12/28/14 09:23 AM (9 years ago)
Hi Jake. I changed "default transition" to "fade" and all is well. ... Reading is not my strong suit ... Thank you
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
12/28/14 10:25 AM (9 years ago)
Just to document it, where-how did you change the default transition to "fade"?
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
12/28/14 10:51 AM (9 years ago)
@Niraj: the transition to the Launch Screen should be "fade." Example: if I have a menu row -> Fade Transiton to Launch Screen -> Any transition to screen loaded by Launch Screen. Does this clarify your question? Jake
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
12/28/14 12:52 PM (9 years ago)
Ah yes, Jake. Thanks for noting that can be done in the Control Panel.
 

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.