At the moment we're setting up a new and much better forum for you, so we can provide even better support! This is why this forum is in ‘read-only' mode for as long as we're migrating the content.
Please visit our brand new forum at https://support.wikitude.com to report your issues.
Should you wait for an urgent answer, please contact us via forum@wikitude.com (make sure to include the title of your post, so we can help you more efficiently).
Thank you,
The Wikitude Team
« Back

Xamarin Camera only show TRIALS word and no camera view

Combination View Flat View Tree View
Threads [ Previous | Next ]



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);
this.locationProvider = new LocationProvider(Forms.Context, this);
arView.Load("samples/3_Point$Of$Interest_3_Multiple$Pois/index.html"); // Load sample world
arView.SetLocation(50.584563, 3.6313585, 1000f);  // Arbitrary locaiotn for testing purpose
var poiData = GetPoiInformation(50.584563, 3.6313585, 20);
var js = "World.loadPoisFromJsonData(" + poiData.ToString() + ");";
Did I miss something to activate the camera?
Can anyone help me?

RE: Xamarin Camera only show TRIALS word and no camera view
11/3/16 4:02 PM as a reply to Web Mixer.

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)?

RE: Xamarin Camera only show TRIALS word and no camera view
11/8/16 9:03 AM as a reply to Web Mixer.

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,...)