new2ios new2ios - 2 months ago 10
Objective-C Question

iOS open broswer from and App and close it at some point and return to the App?

I have an request but I don't know if it is possible. I need to open a browser from my App (which I know that is possible and I know how to do). Then after some browsing and navigation in the browser it will land at a page which I can control. In that moment I need to close the browser and go back to my application.

Is it possible to do that? And if can you provide me some lead how to do that?

Answer

you can use URLScheme in you info.plist

https://developer.apple.com/library/ios/featuredarticles/iPhoneURLScheme_Reference/Introduction/Introduction.html#//apple_ref/doc/uid/TP40007899

for test you can open your app form other app also

with

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"yourScHeme://"]];
Comments