This time I experiencing something rather unusual with Unity and Android. I'm trying to open Android webview on Unity button press. So far everything works well. Add in the Vuforia SDK and still everything works perfect. The problem arises when I try to disable the Camera in the scene.
I've a "Toggle Camera" button on my main scene. and a few buttons in the footer of the scene. These button link to varios webpages in webviews. I've a native close button on the webview to close it. Here's what's happening:
Case 1: QCARBehavior enabled at start. When I click for a webpage, a new webview opens(in full screen). On closing it, I'm back to my AR View. So far, so good. I can use the "Toggle Camera" button to toggle the state of the camera
Case 2: QCARBehavior disabled at start. When I click on the toggle button, the camera turns on. When the camera is on, the webpages work perfect.
Case 3: In either of the cases, if the camera is off, and I open any webpage, it opens correctly. On closes on pressing the close button. But the "Toggle Camera" button doesn't function anymore. The app force closes on pressing the button. Any idea what mst be going wrong here?
In summary, cameraON->Webview->Close->ToggleCamera works perfect. but CameraOFF->Webview->Close->ToggleCamera doesn't work.
I'd be really grateful if somebody here can throw some light on this issue. I'll post my code if necessary!
AR Software Specialist