I would like to ask if the Bluetooth plugin developed by Stuart Lodge in https://github.com/slodge/BallControl can also be used for normal peer to peer connectivity between two android devices. If not, can you please suggest a decent mono android API for BT?
Thanks in advance.
Yes, the basic approach in that plugin could be adapted for perr-to-pee seial port communications.
Alternatively, Xamarin have published a chat sample based on the Java one at http://docs.xamarin.com/samples/BluetoothChat/
Related
I want to implement Audio player with foreground services in flutter that works on both ios + android. I've searched lots of sites, documentation, and pluggins but couldn't find anything perfect. Some of them are only specific to one platform. So I ended up creating Audio player with Native bridge. if anyone knows how I can implement this without native bridge, then please help me. I would be greatfull.
Thanks in advance.
I think package:audio_service will do what you're looking to achieve.
I am new to Xamarin development. And, currently I want to integrate the zendesk chat.
As per my RnD and after contacting Zendesk support center they are not supporting the xamarin yet.
Currently they have sdk for native android and ios respectively.
I need you expertize people's guidelines for the development regarding what scenario i should follow to achieve the same using xamarin.forms :
Integrate the both platforms native sdk's for xamarin in each platform and later call it from Xamarin.Forms by adding platform dependency using Device.OnPlatforms . ( I am not sure about this scenario, please suggest)
Create a jar/aar of Zendesk SDK and use it using binding library concept.( I am not sure it will be accessible into ios platform)
Kindly, suggest me the best approach for this.
Any sample reference for suggestions will be grateful.
Thanks in advance.
I think it's a mix of number 1 and number 2 (and a little extra).
You will need to create the Binding libraries for both iOS and Android. Xamarin has a good documentation of how to do this: Android/Java and IOS/Objective-C
Then you can go either with Xamarin Native (Xamarin.iOS and Xamarin.Android projects) adding the binding to each project. Or you can go with Xamarin.Forms but this will require a little more work as you will need to create an interface of the methods you want to use from the SDKs (most likely all off them) and create the implementations for each platform.
Let's say your interface is called: ISendeskSdkService you will need at least two implementations: ISendeskSdkServiceiOS and ISendeskSdkServiceDroid. These implementations will be on the Platform project and they will be calling the binding libraries you just created and added to each of these projects.
You will be developing your app on top of your interface and which implementation to use will be set on the application load when you are configuring your IoC.
Hope this gives you an idea.
I'm making app with using Xamarin.forms (PCL project).
I'm making app like FITBIT and its wearable device.
I'm using nrf51822 MCU from Nordic.
Someone has done lots of work for syncing with ble device for Xamarin.Forms and fortunately it's working great.
Now, I need to use DFU OTA library to support firmware-update for users.
Nordic provided great examples and source code.
dfu lib for iOS : https://github.com/NordicSemiconductor/IOS-DFU-Library
full project(iOS) : https://github.com/NordicSemiconductor/IOS-nRF-Toolbox
dfu lib for Android : https://github.com/NordicSemiconductor/Android-DFU-Library
And How can I convert this library for using it on Xamarin?
What documents or technique should I look?
Any tips will help me. (It might be lots of pain?)
Thanks.
Nordic says they didn't even start to look Xamarin, So there are only three guys(including me) are looking for these binding project.
discusion here : https://forums.xamarin.com/discussion/comment/214516
you can read this documentation Xamarin.Android supports the use of native libraries via the standard PInvoke mechanism. You can also bundle additional native libraries which are not part of the OS into your .apk.
Android.
https://developer.xamarin.com/guides/android/advanced_topics/using_native_libraries/
the same for
iOS.
https://developer.xamarin.com/guides/ios/advanced_topics/native_interop/
Regards. I hope this help you.
Are there WebRTC libraries ported to BlackBerry? If not, is it possible to port Android NDK code to BB10 project?
Thanks in advance!
WebRTC is completely free for both paid and unpaid apps.
Currently, BlackBerry is interested in delivering support for WebRTC and are researching/investigating on the technology. However, no dates or release schedules have been announced at the moment.
Depending on the APIs being used in the Android app. it may or may not be possible to port Android NDK code to BlackBerry10.
Though the Android Runtime would not support WebRTC projects, BlackBerry10 OS is built on QNX, which is a fully compliant POSIX system.
The QNX compiler, QCC, has a GCC-compliant mode to easily port over existing code.
I am new to Xamarin, and performing a feasibility study.
I am not sure if Xamarin provides a Common API for Bluetooth Low energy across platforms including iOS, android, Windows? In iOS, this API is coreBluetooth.
Please provide details; I couldn't find any good information when searching the net.
Yes Xamarin.iOS and Xamarin.Android do support Bluetooth.
No, they do not supply a common API
For my Sphero hacking - I wrote a cross platform BlueTooth Sphero-specific module https://github.com/slodge/BallControl/tree/master/Cirrious.Sphero.WorkBench/Plugins/Sphero
On iOS this module used ExternalAccessory rather than CoreBLuetooth - just because that is the way Sphero works, but on the other platforms Sphero uses Bluetooth SPP
If you need some CoreBluetooth sample code, then I wrote and tested some code in http://forums.xamarin.com/discussion/comment/7576/ and Solving 'CBConcreteCentralManager is not powered on' in Core Bluetooth in MonoTouch