Reply To: App is getting crashed on iOS with this plugin

Welcome! Forums Unity Plugins In-App Web Browser App is getting crashed on iOS with this plugin Reply To: App is getting crashed on iOS with this plugin

#245
vivekkalkur
Participant

public class FirstPersonController : MonoBehaviour
{
public string MensJacketPage = “https://www.target.com/c/jackets-coats-men-s-clothing/-/N-5xu2a”;

private void Update () {
if (hit.transform.name == “Men_Jacket”) {
InAppBrowser.DisplayOptions options = new InAppBrowser.DisplayOptions();
options.displayURLAsPageTitle = false;
options.pinchAndZoomEnabled = true;
options.pageTitle = “Digital VR Store”;
InAppBrowser.OpenURL(MensJacketPage, options);
}
}
}
In the above code,there is a game object called “Men_Jacket” and whenever I click on it, I am trying to open it your browser.I am integrating this with my firstpersonController script,FYI.