The code works, however redirects the page to the web version of youtube and do not call the YouTube application.
To my surprise do this same procedure on a normal page in phonegap works perfectly.
Someone can help me with this problem?
over 6 years ago
Hi Augusto, The Wikitude SDK does no special handling of redirects that happen inside the ArchitectView. Maybe Cordova added some code or enabled a switch that we haven't.
You could try to:
* Set the document location to 'window.location = architectsdk://open_youtube?url=*url*' * Setup a architectsdk protocoll callback in your cordova application using the Wikitude plugin function `setOnUrlInvokeCallback` * Within the callback function, call again window.loation.href = "youtube url"