question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem with scanning

See original GitHub issue

https://github.com/msthrax/BluetoothTryApp.git (I committed the project and it is uploading, if you refer to this git and nothing was here, please just consider those file I uploaded in this note and then check this git later. thanks)

Steps to reproduce

Hi First of all, I really thank you your efforts regarding production of this library. I installed this library through nuget in my Xamarin.Forms project which include Android, iOS and UWP projects. (And also the Core project). I want to talk about Android project now and iOS and UWP platform is not my goal for now.

  1. I have installed the (vanilla) package in my core and also my android project. The version is 2.2.0-pre2.

  2. I tried to setup everything myself but it didn’t work, so I decided to follow this video that used this library. The link is: https://www.youtube.com/watch?v=IFRqCHLloLA (which is 4 parts)

  3. Targeted Android API is 28 ( Android 9) and minimumAPI is 22 (Android 5.1).

  4. I have added needed permissions in my manifest file as below: `<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="com.companyname.bluetoothtryapp" android:installLocation="preferExternal"> <uses-sdk android:minSdkVersion="22" android:targetSdkVersion="28" /> <application android:label="BluetoothTryApp.Android"></application> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

    <uses-permission android:name="android.permission.BLUETOOTH" /> <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-feature android:name="android.hardware.bluetooth_le" android:required="true" />

</manifest>`

  1. I have a single page that a simple “Start” button would trigger of every thing(Setting up classes, initialization and Bluetooth Scan). this is my cs code: CS File: MainPage.xaml.zip XAML file: MainPage.zip

Expected behavior

I expected to see available Bluetooth devices around my self. I connected a Bluetooth USB Dongle to my Computer and it is active and discover-able. I have another phone with enabled Bluetooth. Also i got two gadgets( one is Samsung Level U Pro and another one is a non-OS smart watch). Level U Pro is paired to my Device to check the “GetPairedDevice” functions.

Actual behavior

The thing that happened is actually nothing. But the “StateChanged” event and the “State” property were OK.

Crashlog

Nothing crashed.

Configuration

**Version of the Plugin: 2.2.0-pre2

**Platform: Android 9.0 - Pie

**Device: Samsung A70 (SM-A705FN/DS)

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:9

github_iconTop GitHub Comments

1reaction
akad90commented, Apr 19, 2020

Thats great @msthrax, thanks again.

I notice this allows any device that is ‘discoverable’ to be listed.

I am aware that this can be controlled in Android with the help of BluetoothAdapter.ActionRequestDiscoverable but do you happen to know how to make an ios device discoverable? Have been hunting around for the answer for quite some time.

1reaction
akad90commented, Apr 19, 2020

Awesome, thanks @msthrax, will take a look! Cheers.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Problem Scanning. Something went wrong. Please try again.
Hello, I just downloaded the scanning app that is compatible with Windows 10 and all of the settings (scanner, source, file type, ...
Read more >
HP Print and Scan Doctor for Windows
Download the free Official HP Print Scan Doctor software to automatically fix scanner issues, system errors or any other scanning problems.
Read more >
How to Fix Scanner Not Working in Windows 10
Solution 3: Update Driver for Your Scanner ... If the scanner driver is having problem, the scanner cannot scan correctly. So updating the...
Read more >
Printers And Scanners | Problems And Troubleshooting
Common problems with scanner are scanners won't turn on, strange noises from scanner, Scanners won't scan etc. Tips to troubleshoot the basic scanner...
Read more >
Scanning Problems
The edges of a document are not scanned. · You cannot scan a document or you only get a few dots for the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found