Hi,
you could send your project to me, if you are comfortable with that, so I can have a look and maybe figure out why you are having this issue.
Kind regards
Daniel
Hello,
Sorry, the code crash because missing in info.plist the Camera Usage Description.
I run the project and always invoke url is called.
How can show you what is happening in my project?
Good morning,
I ran the code you provided with the latest build of our Xamarin component and found the InvokedURL function to be invoked correctly. I also had no trouble running the code. What issues are you facing? Could you provide the error logs for me to have a look at?
Also, which version of our component are you using?
Kind regards
Daniel
Hello Darío,
I have tried to reproduce your issue with the Wikitude Xamarin sample app, but could not.
I simply attached the following function to the onclick event of an HTML button.
imageontarget.js:
myClickFunction: function() { document.location = "architectsdk://mybuttonclicked?action=hellonativefromjs"; alert("myClickFunction"); }
index.html:
<button onclick="World.myClickFunction();" style="position:absolute;top:500px;left:500px;">click me!</button>
All of my clicks generated both the alert dialog as well as a call to the InvokedURL function on the C# side.
Could you try to do the same and report back to me whether it works or not?
Starting from the unaltered Wikitude Xamarin sample app, you would just need to add the two snippets I posted previously in the imageontarget.js file and the index.html file respectively. The unaltered sample app already logs calls to the InvokedURL function by default.
I also attached both these files with the required alterations for your convenience.
Kind regards
Daniel
Darío Orgaz Manjon
Hi,
I have a Xamarin forms project and I have implemented wikitude for iOS.
I have a view renderer that show some items with wikitude.
My problem is that when I mark any element, invokeurl is not always called. I don't know why sometimes works but others no.
My iOS code is the following:
And in JS is:
The js always display the alert.