How to open a link outside the app in RocketWeb? | RokcetWeb iOS

My app is running well but I want to open some pages outside of the app. How can I open a URL in a mobile browser?

If you want to open the link on the custom tab then follow:
https://help.infixsoft.com/how-to-open-external-url-on-custom-tab-rokcetweb-ios/

If you want to open any specific URL on External Browser then on the configure page already has an option. You need to set a full URL to open the External Browser.

But sometimes you need to open all the URLs of a domain in the External browser. Then add the bellow code here,

In this example, all the URLs of the “infixsoft” domain will open on the External Browser.

    if(url.absoluteString.contains("infixsoft.com")){
          isExternalUrlFound = true
          urlOpenType = Constants.WEBVIEW_OPEN_TYPE.EXTERNAL.rawValue
    }

Tips 1: In case you want to open all the URLs on the custom tab expect “infixsoft” then,

if(!url.absoluteString.contains("infixsoft.com")){
          isExternalUrlFound = true
          urlOpenType = Constants.WEBVIEW_OPEN_TYPE.EXTERNAL.rawValue
}

3 thoughts on “How to open a link outside the app in RocketWeb? | RokcetWeb iOS

Leave a Reply