How to use CoreNFC in xamarin.forms? - c#

I'm totally new in xamarin.
I'm trying to use CoreNFC in my xamarin.forms multiplatform app.
But I don't know how to do it because i can only import CoreNfc in myapp.ios and not in myapp.
There is someone that know how to do it ?
Thanks in advance!

Core NFC belongs to the iOS Framework, so you can import and use it only in our iOS Project.
You could implement the NFC feature on each platform you want to support and use a interface and the Xamarin Dependency Service, to have access to these platform specific implementations in your shared code.
Or you look around for a plugin which did this work for you. A starting point could be NFCForms from poz1. But if I remember well it has so far only support for Android and Windows Phone.

Related

Is it possible to Convert or wrap C# APP to IO Xcode Apple APP and Android

I have an app developed for windows 10 on C# and now I want to move to IOS and Android. I have heard of xamarin and used some of there stuff in C# but would it be possible to embed the C# code and move it to apple xcode without having to redevelop the app from again?
would it be possible to embed the C# code and move it to apple xcode without having to redevelop the app from again?
No, it is not possible. Basically you can share some UIs across different platforms, but I think redevelop your app for each platform is necessary.
Not sure if you want to use Xamarin.Android and Xamarin.iOS or Xamarin.Forms to develop your app, you can use C# for development by using Xamarin, it provides a cross-platform implementation of the extensive features in .Net framework, but the actual implementation on each system is very different. For more information, you can refer to Understanding the Xamarin Mobile Platform.
For Xamarin.Android and Xamarin.iOS, you can refer to Android Architecture and iOS Architecture.
For Xamarin.Forms, you can have your UIs and some basic features designed in the PCL in order to share across different platforms, but for most features just for example like working with files, we need to access the native method of each platform, therefor, Xamarin.Forms provides a locator named DependencyService to achieve this.

Add Objective C SDK into Xamarin

I'm working in a xamarin.forms app and I really like it! Just a problem, now I'm trying to add a sdk of ad partners called IronSource (SupersonicAds), but I don't know how to, because is code in objective C.
There is any possibility to integrate it in xamarin.forms?
My objective is integrate an Offerwall, if anyone made it would be really helpful to know how to.
Thank you!
You need to create a Xamarin binding library. This will create a C# wrapper around a native iOS Obj-C library.
https://developer.xamarin.com/guides/ios/advanced_topics/binding_objective-c/

Writing cross-platform Unity3D plugins using Xamarin

Is it possible to write cross-platform Unity3D plugins (specifically for android and ios) using the Xamarin APIs?
If yes, what would be the procedure to go about doing it? Are you aware of any documentation or reference that might be useful?
Unity still doesn't provide a lot of native functionality as Xamarin does. I'm asking this because it just makes sense minimizing the learning curve for developing unity plugins. After a lot of experimentation, I've just begun understanding the intricacies of C#. If I have to learn two other languages (Java and Objective-C) that would greatly impede my progress.
Thanks.
Microsoft is opensourcing the Xamarin SDK, so combined with Mono for Android (that Unity most probably uses), you could soon be closer to your goal
BTW, they're also changing Mono's licensing model to the more permissive "MIT License" and hosting it under the .NET Foundation
Xamarin and Unity MonoDevelop are separate project. Xamarin doesnt support Unity. If you want a crossplatform plugin you could use C++ read:
http://docs.unity3d.com/Manual/Plugins.html

Build portable SignalR component with Xamarin

I have a Windows Phone 8 app that makes use of real time server push via SignalR.
I started to create a Native Android and iOS version of my app, but got stuck at implementing my SignalR component in native Android Java and iOS obj-C.
I have conceptually thought of a way to achieve this by making ONLY JUST the SignalR component portable via Xamarin.
Is it possible to create a Hybrid app in this way ?
And are there any resources online where people have done such.
Thanks for your help.
Xamarin would be kind of an all in sort of thing. So all of your Objective-C and JAVA would need to be ported to Xamarin's framework. That might not be a bad idea though ;).
Alternatively, if you are looking for a more cross platform way to implement a SignalR client, you maybe could wrap the logic up in a UIWebView (iOS) or WebView (Android) and use the JavaScript components. Here is an example from Microsoft on implementing a SignalR client via JavaScript. I don't know how integrated the SignalR functionality is in your app, but this may be an easy way to use it for simple display purposes.

developing tool for building Android/Iphone app

I have .net c# background(don't mind to learn new language to get the things right). Right now i want to make some small applications for Iphone/Android phones.Basically, i will show some graphs with data retrieved through my webservice.
Can anyone tell me which developing tool should i use to create those small apps quickly?
I don't have any experience with Flash.And i just know that Flash builder 4.5 can convert Flash applications to Iphone/Android. However, i don't feel like that it is a native way to build Iphone/Android app
But if you advise that, i might go that way.
thank you
Xamarin has products that allows you to use C# (and your existing skills) for both iOS (iPhone / iPad) and Android devices : MonoTouch and Mono for Android.
disclaimer: I work for Xamarin
You might want to use frameworks that help build apps for multiple platforms with the need to know native programming languages. PhoneGap is one of these popular frameworks.
You can use C# to create a WCF service. There are a few different libraries to develop Android applications. If you want to work with C#, you can check out Mono for Android.
http://docs.xamarin.com/android
From my knowledge, however, Java is the preferred language to develop Android application. Eclipse has a great plugin which integrates with the Android SDK / Emulator.

Categories

Resources