Hi lovely community,
I've got a small question. I bought a flic button from https://flic.io/ and I'd like to integrate it in my Xamarin.Forms project.
It works with Bluetooth and emits data to the smartphone when pressing or holding it. (Up/Down, DoubleClick and longpress events).
But https://flic.io/ doesn't offer any C# library that works with Xamarin.Forms. Only the SDK's for iOS and Android (native) are available and not made with the C# syntax.
So, now I'm staying here and I'm about to cry. I've been trying it with bluetooth scanning, and ended up finding the device with UUID and name but I couldn't create a connection to it, to read the data.
Can anyone explain or offer me any solution to work on this? I'm open to share the ready standalone code with the community for the next guys looking for it, because Flic-buttons (smartbuttons) are really nice!
P.S.: I'm working on an application to save a lot of lifes or injuries. So if anyone gives me the perfect solution, I will credit their name and website into this application, which may come out big very soon.
Thanks a lot! :-)
Posts
You can use native SDKs on Xamarin. It's called Xamarin Bindings and works for both iOS and Android.
I did a simple Google search and found this https://github.com/johnnyjr/FlicLib.Sharp
It is 3 years old but it could just work (just replace the native SDKs with the newer ones), or at least gives you a good start on Flic Binds. Also ignore the "NOTE: In order for the iOS bindings to work you need to be on the alpha channel of Xamarin" since it's 3 years old.
> You can use native SDKs on Xamarin. It's called Xamarin Bindings and works for both iOS and Android.
>
> I did a simple Google search and found this https://github.com/johnnyjr/FlicLib.Sharp
>
> It is 3 years old but it could just work (just replace the native SDKs with the newer ones), or at least gives you a good start on Flic Binds. Also ignore the "NOTE: In order for the iOS bindings to work you need to be on the alpha channel of Xamarin" since it's 3 years old.
Awesome. Thanks a lot for helping me. I really appreciate it and I will contact you soon about the credits.
Will notice you on this thread about my milestones with that.
Have a beautiful day!
Happy it worked. When you finish your project, give us the store link, I want to check your app
Hi Jenaik,
I am currently going through similar struggles as you did in your initial post. I have gotten the flic functionality working for Android but was wondering if you managed to get it working for iOS?
Thanks
Hi, nope. I can't manage to get it working for iOS so far. Really sad. Already contacted Anton from the Flic team developers to create a Xamarin SDK. Maybe they'll do it for us. Hopefully.
Have you got it working?
Did have anyone a solution for Flic 2 and Xamarin (Visual Studio 2017/2019)?