Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

DependencyService.Get returns null, how to debug ?

$
0
0

I am using ACR's BarcodeScanner and SignaturePad component and DependencyService.Get to both of them returns null on WP8.

It doesn't happen to author and I did also hack in MainPage as he have in sample. But application still returns null. Downloaded sample failed on AutoFac. Just as other people report.

Is there some way how to debug or find what is going on and why it doesn't work ? On Android/iOS it works.

Using VS2015 CTP5 and components are installed from NuGet, Xamarin synced to Beta Channel.

code looks like :
protected async Task CheckBarcode()
{
ISignatureService servicex = DependencyService.Get();

        IBarCodeService service = DependencyService.Get<IBarCodeService>();

What I am doing wrong ? It looks more like wrong settings on project level or bigger bug.


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>