-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
microblinkFactory is null even when using dependency service #44
Comments
Went through this myself. The most important thing with this is that if you try to build or run your app in a simulator, then an underlying dependency is not available. The Microsoftblink.Forms.iOS.MicroblinkScannerFactoryImplementation class calls on a method from the Microblink SDK called SharedInstance. SharedInstance is what is actually returning null. And this will happen even if all you are attempting to do is just BUILD the code toward any target besides a physical device. |
Hi @HassanMehdi17 and @stephajn The issue here could be connected with Make sure that you have Also to note, make sure that you've entered a valid license key in the project and initialized the license key method before entering the scanning screen. Regards, |
That's what it was for me. Doing a git lfs pull after getting the initial repository solved the problem beautifully. On my PC, using Visual Studio, I can successfully compile the Droid project and deploy it onto my physical device. If I want to compile the iOS application and deploy it to my iPhone, I actually have to do all of that from Visual Studio for Mac on my iMac for it to work. Trying to use the Xamarin tooling on my Windows PC in Visual Studio 2019 to build it and deploy it to my physical device seems to result in the native library not being deployed along with the Xamarin based code. Not sure if there is a project setting or a specific package setting that has to be put in place, but it definitely seems to only work if I build it using Visual Studio for Mac on a macOS machine. |
im testing on IOS.
my constructor:
public MainPage()
{
InitializeComponent();
the microblinkFactory is getting initialized to null.
this is my appdelegate.cs for my .ios project
The text was updated successfully, but these errors were encountered: