Could anyone suggest me a Xamarin NuGet package to monitor iBeacons?
I have tried Plugin.BLE to scan for beacons. Is there a way to monitor the proximity of beacon?
AltBeacon seems the way to go in Xamarin world. You could always use proprietary sdk like the Estimote one also!
Related
I'm just starting with Uno. I'm an experienced UWP developer and have done some Mac development (With Xamarin Native).
I've created an Uno solution, and have removed the WASM, WPF and Mobile target projects (only interested in UWP and MacOS)
Now I want to use SQLite in my Uno solution, and not sure how that's achieved. I cant add nuget packages to the shared project, so Im guessing that I need to create an interface class to declare the data access requirements, and then implement that interface separately in the UWP and MacOS projects.
Is this how it's done, or have I got this wrong ?
Does anyone know where on the Uno docs I can find out how to do this
Thanks
OK, I was mostly right. After reading the docs again it seems that rather than interfaces, you need to use partial classes to implement the required class across the platforms you need.
I found out how to do it here:
https://platform.uno/docs/articles/platform-specific-csharp.html
There are many .Net wrappers in C# for WinPcap like SharpPcap and PcapDotNet
I have tried to add these Nuget packages to my Xamarin Forms projects but it does not work. I want to create a wifi/packet scanner but I am not sure how to do this in Xamarin. Is it even possible?
When I clone the GitHub repo and build my own version of SharpPcap, the application runs, but I get the error:
System.DllNotFoundException: wpcap
The wpcap.dll is the dll that all these packages are wrapped around and use [DllImport("wpcap.dll")] to work. This wont work in Xamarin (I think).
Another way to use dll's is when you embed them as an application resource, is there any library which I can use that does that?
WinPcap consists of a driver, that extends the operating system to
provide low-level network access, and a library that is used to easily
access the low-level network layers. This library also contains the
Windows version of the well known libpcap Unix API.
Source: https://www.winpcap.org/
There is nothing impossible, however in mobile world you don't have that low level access to drivers and etc. unless you have a root on your device. It is unclear what exactly you want to build. But I know that on both iOS & Android there is an app called Fing. It scans your WiFi network for connected devices. It is written natively per platform. On Android there used to be many different applications that used MITM technique. For example DroidSheep. But I am not aware of any cross-platform solution that is able to scan the network or sniff packages.
I spotted a strange thing. I have a webcam (a4tech p-635, pretty old) which is not recognized by any UWP app, like modern skype. With standard apps, everything works like a charm. I will say even more; same code in Qt compiled with MinGW can handle this camera, but compiled as UWP, can't detect her.
Have you any ideas? I can't find anything which could be a cause. Thanks.
That is most likely caused by the camera drivers. UWP app API is great at abstracting devices and access them via the simple API, but if the webcamera is not recognized, it must be that the drivers for the camera are not providing the right interface that UWP can use.
Please check if there are newer drivers available and if you cannot install some generic driver that would make the camera work.
I'm trying to test a simple xamarin forms sqlite app using Xamarin Live player on iOS device.
I am stuck on this error:
object of type Ninteroret.InterpretedObject' doesn't match target type 'System.IDisposable'(TargetException)
I've tried it in different Xamarin forms but did not find a solution. Did anybody come across this issue and knows how to resolve it?
As far as i know, the LivePlayer has limited support for reflection (currently affects some popular NuGets, like SQLite and Json.NET). Other NuGets may still be supported.
To be fair, it has a LOT of limitations
After i lost a ton of time trying to work with LivePlayer and/or XamlPreviewer i found LiveXaml (a paid product) and never looked back...
I am thinking of doing further work on kaa projects but i have few questions. I actually want to modify the source code of the GPIO control esp and GPIO control android. Is this posible? I mean downloading the demo source code fromm Kaa sandbox and editing them.
What IDE do i use for the GPIO control esp and GPIO control android? How do i compile them. How do i run them again on my android phone and on ESP8266 device?
I will appreciate a guide to doing this or a better way of doing this.
Thank You,
You can download code of Kaa Sample Applications from Kaa Sandbox (or GitHub), but changing the code embedded on Kaa Sandbox is not trivial and long procedure.
Should you want to contribute your code changes, you may open a pull request on GitHub's Kaa Sample Applications repository.
Regarding your question about IDE. Kaa project does not limit or recommend using (or not using) of any IDE. That means you can use any one suitable for you. Also, you would normally use different IDE of Android and ESP8266. You should check the appropriate platforms recommendations and documentation on how to develop, debug and program the respective devices.