Skip to content
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

.Net core #36

Open
sonfire186 opened this issue Sep 6, 2019 · 8 comments
Open

.Net core #36

sonfire186 opened this issue Sep 6, 2019 · 8 comments

Comments

@sonfire186
Copy link

sonfire186 commented Sep 6, 2019

Why used .Net Core?

@mparadina
Copy link

Hello @sonfiree

If I correctly understood your question, we are using the .net core, because we currently do not need the whole .net framework.

If I missed something, can you please specify the question?

Best regards

@sonfire186
Copy link
Author

I want to use your library in .Net Core.That is, on a PC

@mparadina
Copy link

Hi @sonfiree

Unfortunately, no, that is not possible. BlinkID has been built using native Android and iOS SDKs and Xamarin version is only a c# wrapper around the native SDKs. The native SDKs do not support PC, only iOS and Android.

@sonfire186
Copy link
Author

Hi @sonfiree

Unfortunately, no, that is not possible. BlinkID has been built using native Android and iOS SDKs and Xamarin version is only a c# wrapper around the native SDKs. The native SDKs do not support PC, only iOS and Android.

Since Xamarion is a C # shell, why can't you run it on a PC in C #?

@irreal
Copy link

irreal commented Sep 9, 2019

Since Xamarion is a C # shell, why can't you run it on a PC in C #?

As they just said, the C# layer in Xamarin is a wrapper over the native iOS and Android code.

Your question is like asking why can't you stick a smartphone screen protector on a regular PC display and then use it as a touch screen.

It only accepts touch input when it is mounted on a touchscreen.

Likewise, Xamarin wrapper libraries allow you to call mobile native functionalities only when used on a mobile platform...

@sonfire186
Copy link
Author

Since Xamarion is a C # shell, why can't you run it on a PC in C #?

As they just said, the C# layer in Xamarin is a wrapper over the native iOS and Android code.

Your question is like asking why can't you stick a smartphone screen protector on a regular PC display and then use it as a touch screen.

It only accepts touch input when it is mounted on a touchscreen.

Likewise, Xamarin wrapper libraries allow you to call mobile native functionalities only when used on a mobile platform...

They had a sequence.
C# -> xamarin. Or i didn't understand

@DoDoENT
Copy link
Member

DoDoENT commented Sep 9, 2019

@sonfiree, C# is a language for writing code. Xamarin is a library written in C# which provides the functionalities of iOS and Android to C# language. It achieves that by providing concepts like Forms which can be used to present the UI, while actually implementing the logic of those using native iOS view controllers and Android activities. Yes, you can use Xamarin.Forms also on PC because Xamarin implemented Forms on PC using WPF, which is part of .NET Framework, which is another library written in C# which targets Windows apps specifically.

This makes it possible for you to write your app once using Xamarin.Forms and deploy it on all supported platforms (UWP, iOS, Android) as long as every dependency of your application is also written in a way that supports all those platforms (i.e. it is either implemented purely in C# with Xamarin framework or has native wrappers for each platforms specifically).

As mentioned above, BlinkID is implemented as native iOS/Android SDK and does not support running on PC. It is not implemented with C# nor with Xamarin. The BlinkID Xamarin SDK is just a thin c# wrapper around native code, which enables you to simply call a c# scan function without going through process of binding native Android and iOS SDKs directly into your app (if you wish to do that, here is the howto).

The part where BlinkID Xamarin uses .net core is only because it is a dependency of the Xamarin framework (i.e. we need it to provide APIs that are compatible with Xamarin applications), not for the actual implementation of scanning. You can verify that by checking C# Android native sample dependencies list; also for iOS or by extracting the APK of your Android app (or IPA of your iOS app) where you will see that during scanning a lot of java/objc/c++ code is being executed and no c# code.

I hope this explains now the differences and interconnections between C#, Xamarin, .NET Core, .NET framework and BlinkID for Xamarin.

@sonfire186
Copy link
Author

Xamarin.Forms supported platforms UWP or does not support running on PC. 🤔🤔🤔🤔🤔🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants