Updating content for Xamarin

Hi everyone,

I recently bought a dev kit with 3 Proximity Beacons and have been writing Swift in Xcode to create small apps to test out how the beacons work - this has been a great experience so far.

I have been investigating using the beacons in Xamarin for a work project. The devs at my workplace have used Xamarin before and they are really interested to see how both Estimote Beacons and Xamarin can come together.

I tried to follow a tutorial: https://blog.xamarin.com/adding-real-world-context-with-estimote-beacons-and-stickers/ but the content was outdated.

I was wondering if anyone could recommend a more up-to-date resource for using Estimote Beacons in Xamarin.

I’ve also reached out to the Xamarin team but they haven’t responded as of yet.

Thanks I appreciate it,

Ally

Maybe the documentation of the Xamarin component wrapping our SDK will be more helpful:

https://components.xamarin.com/gettingstarted/estimotesdkios

I would also like some example code in Xamarin - I have followed the dev Getting Started guide and translated from Swift in C# as I’ve gone but can’t get my Xamarin app to detect the beacons.

Is there any Xamarin/C# sample app available?

Thanks,
Mark.

No worries, found some other code that worked.

The official swift example needs to be updated for iOS 10 please! It’s way out of date.

You should put it inside Device.BeginInvokeOnMainThread() like below

public void Update(string text)
{
Device.BeginInvokeOnMainThread(() =>
{
var layout = new StackLayout
{
Children =
{
new Label { Text = text }
}
};

this.Content = layout;

});
}

If you have any query related to Xamarin App Development, then you can visit at: http://www.nexmobility.com :slight_smile: