Xamarin与Microsoft Band IOS一起构成

时间:2016-05-25 08:36:48

标签: c# ios xamarin.forms microsoft-band

我使用来自Microsoft Band Sdk的样本和Xamarin表单。 它可以在Universal应用程序上运行,但是从部署到iphone的MAC(Macincloud)中Xamarin失败了。下载了Xamarin Band nuget包,它找到了我的乐队,但不会连接。

      IEnumerable<BandDeviceInfo> pairedBands = await BandClientManager.Instance.GetPairedBandsAsync();
            if (pairedBands.Count() < 1)
            {
                return;
            }
BandDeviceInfo curBand = pairedBands.FirstOrDefault();
 // Connect to Microsoft Band.
//Code stops here on iphone, waiting forever.
     bandClient = await BandClientManager.Instance.ConnectAsync(curBand);

任何提示都将不胜感激:)

0 个答案:

没有答案