Code Monkey home page Code Monkey logo

xamarin-beacon's Introduction

xamarin-beacon

Build Status

Xamarin-beacon is a ibeacon simulation application for android and ios device.

  • Scanning the nearby ibeacons
  • Broadcast an iBeacon

This application is build upon the Altbeacon libery for the android device and for ios device we have used iOS builtin libery corelocation for scanning and corebluetooth for broadcasting.

Installation

Xamarin-beacon reqires visual studio(2019 or above) and a physical device this will not work on a emulaor.

  • Clone the repository
  • Open the solution file (.sln)
  • run on the device

Development

Want to make your changes, Great!

  • Ui changes need to do in application folder Page/MainPage.cs
  • Ui related functions are on ViewModel/MainPageViewModel.cs
  • Beacon functions for android .Android AltBeaconService.cs
  • Beacon function for ios .iOS Blescan.cs --> scanner and BleTransmit.cs --> broadcast
  • All configuration for the iBeacon function initilized on application class

For ios add this on info.plist

<key>UIBackgroundModes</key>
<array>
    <!--for connecting to devices (client)-->
    <string>bluetooth-central</string>

    <!--for server configurations if needed-->
    <string>bluetooth-peripheral</string>
</array>

<!--Description of the Bluetooth request message (required on iOS 10, deprecated)-->
<key>NSBluetoothPeripheralUsageDescription</key>
<string>YOUR CUSTOM MESSAGE</string>

<!--Description of the Bluetooth request message (required on iOS 13)-->
<key>NSBluetoothAlwaysUsageDescription</key>
<string>YOUR CUSTOM MESSAGE</string>

Todos

  • Need to fix the codeQL work-flow

License

MIT

Free Software, Hell Yeah!

xamarin-beacon's People

Contributors

dipghoshraj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

xamarin-beacon's Issues

App Crashing

Hi,

I tried to run the app on my own phone iPhone Xs MAX, but I am facing an issue. The app crashes directly when I open it.

Here are the logs, if someone have an idea or a fix for me it would be awesome, thanks.

`
Resolved pending breakpoint for 'Xamarin.HotReload.HotReloadAgent.BreakpointCheckpoint()' to /Users/runner/work/1/s/Source/Xamarin.HotReload.Agent/HotReloadAgent.cs:365 [0x00000].
Thread started: #6
Loaded assembly: /private/var/containers/Bundle/Application/78B7050B-AEE3-4ABC-9FE5-268C04138141/xamarin-beacon.iOS.app/System.ObjectModel.dll [External]

=================================================================
Native Crash Reporting

Got a abrt while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.

=================================================================
Native stacktrace:

0x1042f5270 - /private/var/containers/Bundle/Application/78B7050B-AEE3-4ABC-9FE5-268C04138141/xamarin-beacon.iOS.app/xamarin-beacon.iOS : 
0x1042ebe18 - /private/var/containers/Bundle/Application/78B7050B-AEE3-4ABC-9FE5-268C04138141/xamarin-beacon.iOS.app/xamarin-beacon.iOS : 
0x1042f47bc - /private/var/containers/Bundle/Application/78B7050B-AEE3-4ABC-9FE5-268C04138141/xamarin-beacon.iOS.app/xamarin-beacon.iOS : 
0x1a8389414 - /usr/lib/system/libsystem_platform.dylib : <redacted>
0x1a846fed8 - /usr/lib/system/libsystem_kernel.dylib : <redacted>
0x1a846ff0c - /usr/lib/system/libsystem_kernel.dylib : <redacted>
0x1aea09bac - /System/Library/PrivateFrameworks/TCC.framework/TCC : <redacted>
0x1aea09ae8 - /System/Library/PrivateFrameworks/TCC.framework/TCC : <redacted>
0x1aea0dd38 - /System/Library/PrivateFrameworks/TCC.framework/TCC : <redacted>
0x1a828a4c4 - /usr/lib/system/libxpc.dylib : <redacted>
0x1a827e5b4 - /usr/lib/system/libxpc.dylib : <redacted>
0x1a8327634 - /usr/lib/system/libdispatch.dylib : <redacted>
0x1a833f988 - /usr/lib/system/libdispatch.dylib : <redacted>
0x1a83373c8 - /usr/lib/system/libdispatch.dylib : <redacted>
0x1a838d750 - /usr/lib/system/libsystem_pthread.dylib : _pthread_wqthread
0x1a83939c8 - /usr/lib/system/libsystem_pthread.dylib : start_wqthread

=================================================================
Basic Fault Address Reporting

Memory around native instruction pointer (0x1a846b858):0x1a846b848 c0 03 5f d6 c0 03 5f d6 30 41 80 d2 01 10 00 d4 ......0A......
0x1a846b858 e3 00 00 54 fd 7b bf a9 fd 03 00 91 21 7e ff 97 ...T.{......!~..
0x1a846b868 bf 03 00 91 fd 7b c1 a8 c0 03 5f d6 c0 03 5f d6 .....{........
0x1a846b878 d0 03 80 d2 01 10 00 d4 e3 00 00 54 fd 7b bf a9 ...........T.{..
`

CodeQL is getting error to run the workflow

We were unable to automatically build your code. Please replace the call to the autobuild action with your custom build steps. The process '/opt/hostedtoolcache/CodeQL/0.0.0-20200826/x64/codeql/csharp/tools/autobuild.sh' failed with exit code 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.