I recently ran this on my OnePlus 7 Pro running Android 10 and it crashed with:
Process: idv.markkuo.cscblebridge, PID: 19212
android.app.RemoteServiceException: Bad notification for startForeground: java.lang.RuntimeException: invalid channel for service notification: Notification(channel=csc_ble_channel pri=0 contentView=null vibrate=null sound=null tick defaults=0x0 flags=0x50 color=0x00000000 vis=PRIVATE)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2052)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7710)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:516)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)
Steps to Reproduce:
1) Run the application on a OnePlus 7 Pro running Android 10
2) Select START BLE BRIDGING
3) The above crash will occur
I recently ran this on my OnePlus 7 Pro running Android 10 and it crashed with:
Steps to Reproduce: 1) Run the application on a OnePlus 7 Pro running Android 10 2) Select
START BLE BRIDGING
3) The above crash will occurI've created a PR to resolve the issue: https://github.com/starryalley/CSC_BLE_Bridge/pull/9