Hi Webmixer, do you use PageRenderer or do you simulate onCreate(), onPostCreate(), onPause(), ... with ViewRenderer´s method OnElementChanged()? If you use ViewRenderer how do you simulate the methods of lifecycle?
W
Webmixer
said
over 7 years ago
Ok, find the solution.
The reason of this error was that I use a custom rendrer to add ArchitectView on a Xaml page and it didn't follow the page life cycle.
I finaly add event to my custom renderer to fire ArchitextView event (onpostcreate, onresume,...)
Thanks
E
Eva
said
over 7 years ago
Hi Web,
Before doing any further investigation could you please provide the following information:
- Which version of the SDK are you using?
- Are you using the JS API?
- What device does this happen with (os Version and model)?
Thanks
W
Webmixer
said
over 7 years ago
Hi,
I know that a post with the same subject has been opened last year, but this post don't give any clue about Xamarin and Wikitude.
I'm searching to add Wikitude on an existing Xamarin.Forms app. After few days, I finaly find a solution to allow Wikitude to be used from Xamarin Forms.
Displaying the ArchitectView and loading POIs seems to work (I see the Wikitude logo apearing on view startup, and then a info button indicating that x POIs are loaded)
But I only see a black screen with the "Trial" word (I'm still using a trial serial). No Camera view, No POI's if I move my phone
I'm currently test Wikitude on Android, (iOS will be done when Android works)
Here is a portion of My code:
arView = new Wikitude.Architect.ArchitectView(Forms.Context); SetNativeControl(arView); // this is used to set use native control in Xamarin Custom Renderer
int requiredFeatures = StartupConfiguration.Features.Tracking2D | StartupConfiguration.Features.Geo;
string key = ".....";
var config = new Wikitude.Architect.StartupConfiguration(key, requiredFeatures);
Webmixer