Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android example not working #32

Closed
systemcode opened this issue Apr 29, 2021 · 10 comments
Closed

Android example not working #32

systemcode opened this issue Apr 29, 2021 · 10 comments

Comments

@systemcode
Copy link

I have tried the example v 0.3.7 on iOS and MACOS and it works fine.

It fails to show any devices on Android. The app screen is empty with no devices listed.
Using SDK 28 and 29 on android 10 on a real device and emulator.

D/FlutterMIDICommand( 8881): tryToInitBT
D/FlutterMIDICommand( 8881): Show rationale for Location
D/FlutterMIDICommand( 8881): devices [Landroid.media.midi.MidiDeviceInfo;@62e62ae
D/FlutterMIDICommand( 8881): list []
I/flutter ( 8881): Error showRationaleForPermission

@mortenboye
Copy link
Contributor

mortenboye commented Apr 29, 2021 via email

@systemcode
Copy link
Author

systemcode commented Apr 29, 2021 via email

@mortenboye
Copy link
Contributor

mortenboye commented Apr 29, 2021 via email

@systemcode
Copy link
Author

systemcode commented Apr 29, 2021 via email

@mortenboye
Copy link
Contributor

mortenboye commented Apr 29, 2021 via email

@systemcode
Copy link
Author

systemcode commented Apr 29, 2021 via email

@systemcode
Copy link
Author

I deleted and reinstalled allowing location perms. Still no list of devices displayed.

D/FlutterMIDICommand(18097): tryToInitBT
D/FlutterMIDICommand(18097): Already permitted
D/FlutterMIDICommand(18097): Start BLE Scan
D/BluetoothAdapter(18097): isLeEnabled(): ON
D/BluetoothLeScanner(18097): onScannerRegistered() - status=0 scannerId=6 mScannerId=0
D/FlutterMIDICommand(18097): FlutterStreamHandler onListen
D/FlutterMIDICommand(18097): devices [Landroid.media.midi.MidiDeviceInfo;@4668262
D/FlutterMIDICommand(18097): list []

@systemcode
Copy link
Author

Ok - The reason there is no list of devices is that Network Session is not displayed as it is with ios and macos.
I connected a cable to a USB Midi device and all is good.
I tend to use Network Session with iOS emulators and macos routed through to a MIDI port when in development on MAC.

slightly related issue - on emulator, there is no BT so an exception occurs which is is handled internally but I've got a tidyup fix which I'll PR.

So is Network Session a deliberate omission?

@mortenboye
Copy link
Contributor

mortenboye commented Apr 30, 2021 via email

@systemcode
Copy link
Author

Sorry for the bother.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants