Discussion Forums  >  Uncategorized

Replies: 5    Views: 195

kirthstar
Veteran developer
Profile
Posts: 94
Reg: May 18, 2011
New York
940
01/27/12 07:12 PM (14 years ago)

Custom html to app screen or action

Just wondering if there is any way to link to screen or action from custom external html like native app launch Thanks,
 
Aescleah
Code is Art
Profile
Posts: 43
Reg: Sep 15, 2011
Earth
430
like
01/28/12 01:06 PM (14 years ago)
That is possible, and not too complicated. Assuming you're on iOS (I have no idea how this works on Android), you can use custom URL schemes. You will need to add the custom url scheme to your info.plist file, in the first place. Then, in the BT_screen_customHTML.m file, you will need to take a look at the -(BOOL)webView:(UIWebView*)theWebView shouldStartLoadWithRequest:(NSURLRequest*)request navigationType:(UIWebViewNavigationType)navigationType method, and there you can define any action you want to be launched when a user clicks the link/item with the appropriate scheme. Of course, that will require some coding, but nothing impossible. Do you have an idea of what you would like to achieve?
 
rgtichy
Lost but trying
Profile
Posts: 104
Reg: Oct 14, 2011
Barrington
1,040
like
01/28/12 01:15 PM (14 years ago)
Is there an example of this somebody can post?
 
kirthstar
Veteran developer
Profile
Posts: 94
Reg: May 18, 2011
New York
940
like
01/29/12 05:42 AM (14 years ago)
Aescleah, I am trying to add Ask Question custom html page which will require user to login , I would like to place a link in the Ask Question page if the user is not logged in ask him to click the link which will take to the login screen . Once the concept works, then I will have few custom screen links in other content pages for more user interaction in the app Thanks, Kirth
 
Vali
buzztouch Evangelist
Profile
Posts: 193
Reg: May 22, 2011
Bucharest
5,830
like
01/29/12 12:57 PM (14 years ago)
Hi Aescleah, I'm too interested in this. Is there a possibility to make a how to doc of how we can achieve this? Thanks a lot, Vali
 
Aescleah
Code is Art
Profile
Posts: 43
Reg: Sep 15, 2011
Earth
430
like
02/02/12 07:53 AM (14 years ago)
Sorry I couldn't reply earlier! You can take a look at this page, it explains everything you need: http://www.idev101.com/code/Objective-C/custom_url_schemes.html In case you have problems with anything, feel free to ask!
 

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.