Closed shipley-dcc closed 2 months ago
Thank you for reporting this. I will try to reproduce it and get back to you this week.
Unfortunately I could not reproduce your issue, see logs:
Please try again and then paste your Logcat logs here.
Also, which device and Android version do you use?
Thank you for trying to recreate it. I'm sorry I wasted your time. I'm using a Fairphone 4 with Android 13. At least I now know it's something with my setup. I appreciate all the work you do with the Capacitor plugins.
Thank you for your kind words. In that case, I will close the issue. If you still have any questions, please don't hesitate to let me know.
Plugin(s)
Version
6.0.0
Platform(s)
Current behavior
If you start an app with the Bluetooth Low Energy plugin installed and don't call start foreground service within a minute of the app starting then you get an
App isn't responding
alert dialog.The error is:
Reason: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{fffb60f u0 dev.robingenz.capacitor.plugindemo/io.capawesome.capacitorjs.plugins.bluetoothle.BluetoothLowEnergyService}
This is happening with the robingenz/capacitor-plugin-demo
As a workaround, you can start the foreground service and then stop it again.
Expected behavior
Having the Bluetooth Low Energy plugin installed shouldn't crash the app if you don't start the foreground service straight away.
Reproduction
https://github.com/robingenz/capacitor-plugin-demo
Steps to reproduce
Other information
No response
Capacitor doctor
[warn] The bundledWebRuntime configuration option has been deprecated. Can be safely deleted. 💊 Capacitor Doctor 💊
Latest Dependencies:
@capacitor/cli: 6.1.2 @capacitor/core: 6.1.2 @capacitor/android: 6.1.2 @capacitor/ios: 6.1.2
Installed Dependencies:
@capacitor/cli: 6.1.2 @capacitor/android: 6.1.2 @capacitor/core: 6.1.2 @capacitor/ios: 6.1.2
[error] Xcode is not installed [success] Android looking great! 👌
Before submitting