Auggnet
Veteran developer
Profile
Posts: 225
Reg: Nov 20, 2012
USA
2,550
05/21/13 10:25 AM (12 years ago)

Block items in search and redirect to IAP?

Lets say i have a main menu on tab one, and a search on tab two. Take a look at sample tree of screens Menu - Section Alpha (simple menu) - - Child A (html screen) - - Child B (html screen) - - Child C (html screen) - Section Beta (simple menu) - - Child D (html screen) - - Child E (html screen) - - Child F (html screen) - Section PRO (simple menu) - - Child P (html screen) - - Child R (html screen) - - Child O (html screen) Search ALL Screens are searchable. Lets say someone searches up the screen "Child P" without purchasing the screen "Section PRO". I Want it so all sections and child screens are openly searchable, BUT if they have not purchased the section, then redirect all child screens within the pro section to the designated IAP Screen. If you need more information please ask! Thankyou so much!
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
05/21/13 11:57 PM (12 years ago)
Are the childItems all the same plugin? If so, you could add code to that plugin to check whether this is a Pro screen (by looking at a JSON value for it), and if do, look to see if pro has been purchased. If not, redirect. If you are using multiple plugins, you could copy/paste that code into each plugin.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
05/21/13 11:57 PM (12 years ago)
I would throw it in viewWillAppear method, by the way.
 

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.