air cover Member Licensed User Longtime User Mar 25, 2021 #1 I've got a customer in the field who has Android 10. His Bluetooth is turned on and he can access BLE devices via apps. On each app screen at the very top his Bluetooth icon is displayed... ...except on mine! I've got 2 Android phones, one running 7.1.1 and the other running 9. On those 2 test phones I clearly see the Bluetooth icon displayed on the upper status bar as shown here: Anyway, my test phones use my app just fine. It's a remote control that moves your TV left & right mechanically. His Android 10 phone, however, shows that bluetooth icon on every app except for mine. So my customer in the field gets no Bluetooth signal from my app to my control circuit. He's running Android 10 and I'd love to know if I need to do something different to get my Bluetooth (BLE) remote control working on his phone. Has anyone seen anything different on Android 10 for Bluetooth?? Have I not asked for the correct Permissions on the Google Play Store? Last edited: Mar 25, 2021
I've got a customer in the field who has Android 10. His Bluetooth is turned on and he can access BLE devices via apps. On each app screen at the very top his Bluetooth icon is displayed... ...except on mine! I've got 2 Android phones, one running 7.1.1 and the other running 9. On those 2 test phones I clearly see the Bluetooth icon displayed on the upper status bar as shown here: Anyway, my test phones use my app just fine. It's a remote control that moves your TV left & right mechanically. His Android 10 phone, however, shows that bluetooth icon on every app except for mine. So my customer in the field gets no Bluetooth signal from my app to my control circuit. He's running Android 10 and I'd love to know if I need to do something different to get my Bluetooth (BLE) remote control working on his phone. Has anyone seen anything different on Android 10 for Bluetooth?? Have I not asked for the correct Permissions on the Google Play Store?
air cover Member Licensed User Longtime User Mar 26, 2021 #21 MbedAndroid said: secret is easy: private server. Click to expand... No, that requires savvy users willing to open their phone settings. Upvote 0
MbedAndroid said: secret is easy: private server. Click to expand... No, that requires savvy users willing to open their phone settings.
M MbedAndroid Well-Known Member Licensed User Longtime User Mar 26, 2021 #22 we sell hardware with tablet included . the question for the samsung a51 came from a user who tried his phone on the system. As the tablet is only used for the hardware the safety settings are not important. But the question for the A51 puzzeled me. I asked the guy if he use earphones and if so, switch them off. Upvote 0
we sell hardware with tablet included . the question for the samsung a51 came from a user who tried his phone on the system. As the tablet is only used for the hardware the safety settings are not important. But the question for the A51 puzzeled me. I asked the guy if he use earphones and if so, switch them off.
f0raster0 Well-Known Member Licensed User Longtime User Mar 26, 2021 #23 MbedAndroid said: secret is easy: private server. Click to expand... totally agree. air cover said: No, that requires savvy users willing to open their phone settings. Click to expand... If it is a dedicated App. Make one-page manual (or record your screen to make a 1min video installing your App) About your Android 10 issue, please debug it! Post #5 Bluetooth BLE Difference between Android 7.1.1 vs 10.0?? I've got a customer in the field who has Android 10. His Bluetooth is turned on and he can access BLE devices via apps. On each app screen at the very top his Bluetooth icon is displayed... ...except on mine! I've got 2 Android phones, one running 7.1.1 and the other running 9. On those 2... www.b4x.com About your Question: Android Question: Bluetooth BLE Difference between Android 7.1.1 vs 10.0?? Post #5 Bluetooth BLE Difference between Android 7.1.1 vs 10.0?? I've got a customer in the field who has Android 10. His Bluetooth is turned on and he can access BLE devices via apps. On each app screen at the very top his Bluetooth icon is displayed... ...except on mine! I've got 2 Android phones, one running 7.1.1 and the other running 9. On those 2... www.b4x.com My friend, we can tell you a lot of options. But please share information about the Smartphone, about the BLE example used, BLE hardware used, it is paired already before stating the App, have you tried remove and install again, make sure the user accepted the new permissions.. etc etc etc.. All those questions are needed if you don't debug the App showing the logs.. The easer way is debug it! Post #5 Bluetooth BLE Difference between Android 7.1.1 vs 10.0?? I've got a customer in the field who has Android 10. His Bluetooth is turned on and he can access BLE devices via apps. On each app screen at the very top his Bluetooth icon is displayed... ...except on mine! I've got 2 Android phones, one running 7.1.1 and the other running 9. On those 2... www.b4x.com Last edited: Mar 27, 2021 Upvote 0
MbedAndroid said: secret is easy: private server. Click to expand... totally agree. air cover said: No, that requires savvy users willing to open their phone settings. Click to expand... If it is a dedicated App. Make one-page manual (or record your screen to make a 1min video installing your App) About your Android 10 issue, please debug it! Post #5 Bluetooth BLE Difference between Android 7.1.1 vs 10.0?? I've got a customer in the field who has Android 10. His Bluetooth is turned on and he can access BLE devices via apps. On each app screen at the very top his Bluetooth icon is displayed... ...except on mine! I've got 2 Android phones, one running 7.1.1 and the other running 9. On those 2... www.b4x.com About your Question: Android Question: Bluetooth BLE Difference between Android 7.1.1 vs 10.0?? Post #5 Bluetooth BLE Difference between Android 7.1.1 vs 10.0?? I've got a customer in the field who has Android 10. His Bluetooth is turned on and he can access BLE devices via apps. On each app screen at the very top his Bluetooth icon is displayed... ...except on mine! I've got 2 Android phones, one running 7.1.1 and the other running 9. On those 2... www.b4x.com My friend, we can tell you a lot of options. But please share information about the Smartphone, about the BLE example used, BLE hardware used, it is paired already before stating the App, have you tried remove and install again, make sure the user accepted the new permissions.. etc etc etc.. All those questions are needed if you don't debug the App showing the logs.. The easer way is debug it! Post #5 Bluetooth BLE Difference between Android 7.1.1 vs 10.0?? I've got a customer in the field who has Android 10. His Bluetooth is turned on and he can access BLE devices via apps. On each app screen at the very top his Bluetooth icon is displayed... ...except on mine! I've got 2 Android phones, one running 7.1.1 and the other running 9. On those 2... www.b4x.com
air cover Member Licensed User Longtime User Mar 27, 2021 #24 f0raster0 said: My friend, we can tell you a lot of options. But please share information about the Smartphone, about the BLE example used, BLE hardware used, it is paired already before stating the App, have you tried remove and install again, make sure the user accepted the new permissions.. etc etc etc.. All those questions are needed if you don't debug the App showing the logs.. Click to expand... Yeah, I may need to debug it. I mean, it's not really a "bug" since it works on Android 7 and 9, but viewing the log makes sense. I upgraded my development PC to B4A 10.7 and compiled the TVtilter apk to SDK 30. Uploaded it to the Play Store and am waiting on Google's "review" now. In the meantime, the new compile again works on 7.1.1 and 9. Customer is running Samsung Galaxy 9 on Android 10. Reset his phone. Downloaded the old version for SDK 29. Verified all permissions. Verified Location with Precision Accuracy on. Verified that he wasn't connecting to a different Bluetooth device like earbuds. No joy. BLE just scans and scans, seeing nothing on my app on his phone running Android 10. I can see his DSD Relay hardware on my 2 development phones, though. Will try the SDK 30 version on his phone as soon as Google approves my update, of course. Maybe I'm the first person to ever see a BLE issue on android 10. Probably means that I need more development phones with multiple Android versions. Upvote 0
f0raster0 said: My friend, we can tell you a lot of options. But please share information about the Smartphone, about the BLE example used, BLE hardware used, it is paired already before stating the App, have you tried remove and install again, make sure the user accepted the new permissions.. etc etc etc.. All those questions are needed if you don't debug the App showing the logs.. Click to expand... Yeah, I may need to debug it. I mean, it's not really a "bug" since it works on Android 7 and 9, but viewing the log makes sense. I upgraded my development PC to B4A 10.7 and compiled the TVtilter apk to SDK 30. Uploaded it to the Play Store and am waiting on Google's "review" now. In the meantime, the new compile again works on 7.1.1 and 9. Customer is running Samsung Galaxy 9 on Android 10. Reset his phone. Downloaded the old version for SDK 29. Verified all permissions. Verified Location with Precision Accuracy on. Verified that he wasn't connecting to a different Bluetooth device like earbuds. No joy. BLE just scans and scans, seeing nothing on my app on his phone running Android 10. I can see his DSD Relay hardware on my 2 development phones, though. Will try the SDK 30 version on his phone as soon as Google approves my update, of course. Maybe I'm the first person to ever see a BLE issue on android 10. Probably means that I need more development phones with multiple Android versions.
Peter Simpson Expert Licensed User Longtime User Mar 27, 2021 #25 You need to upload you app somewhere so that your can post a link for is to test it for you on Android 10, it's as simple as that really. All this talk is going absolutely nowhere, it needs testing on A10. Either open up the locations on the play store or unload it somewhere. Actually better still, use the beta testers feature on the play store. Set up an open, closed or internal test - Play Console Help Using Play Console, developers can test apps with specific user groups or open tests to Google Play users to fix technical or user experience issues before making an app available on Google Play. See support.google.com Upvote 0
You need to upload you app somewhere so that your can post a link for is to test it for you on Android 10, it's as simple as that really. All this talk is going absolutely nowhere, it needs testing on A10. Either open up the locations on the play store or unload it somewhere. Actually better still, use the beta testers feature on the play store. Set up an open, closed or internal test - Play Console Help Using Play Console, developers can test apps with specific user groups or open tests to Google Play users to fix technical or user experience issues before making an app available on Google Play. See support.google.com
air cover Member Licensed User Longtime User Mar 27, 2021 #26 Peter Simpson said: You need to upload you app somewhere so that your can post a link for is to test it for you on Android 10, it's as simple as that really. All this talk is going absolutely nowhere, it needs testing on A10. Either open up the locations on the play store or unload it somewhere. Actually better still, use the beta testers feature on the play store. Set up an open, closed or internal test - Play Console Help Using Play Console, developers can test apps with specific user groups or open tests to Google Play users to fix technical or user experience issues before making an app available on Google Play. See support.google.com Click to expand... Yup. I added the rest of the world. I have no knowledge of whether that takes effect immediately or if Google has to review/approve. Most of the main app screen is disabled until the app connects to my hardware, so you won't see much, but if you see bluetooth devices listed as a selection, then it is working. Won't take 5 seconds, total. Upvote 0
Peter Simpson said: You need to upload you app somewhere so that your can post a link for is to test it for you on Android 10, it's as simple as that really. All this talk is going absolutely nowhere, it needs testing on A10. Either open up the locations on the play store or unload it somewhere. Actually better still, use the beta testers feature on the play store. Set up an open, closed or internal test - Play Console Help Using Play Console, developers can test apps with specific user groups or open tests to Google Play users to fix technical or user experience issues before making an app available on Google Play. See support.google.com Click to expand... Yup. I added the rest of the world. I have no knowledge of whether that takes effect immediately or if Google has to review/approve. Most of the main app screen is disabled until the app connects to my hardware, so you won't see much, but if you see bluetooth devices listed as a selection, then it is working. Won't take 5 seconds, total.
C CHK Member Licensed User Longtime User Mar 30, 2021 #27 I just stumbled accross this post. I had similar issues with a Samsung Galaxy S10e and Android 10 a couple of weeks ago. The phone never shows the Bluetooth icon, not in my app, not in other. And it somehow changed the Bluetooth handshake, as I did not get the expected messages in my connected hardware as before. Moreover, I used to disconnect the Bluetooth connection in Activity_Pause, which also did not work any longer. After closing my app the connection remains. So I had to toggle Bluetooth on/off at every new start of the app. In my opinion there is certainly something different with Android 10, a bug or a feature. Upvote 0
I just stumbled accross this post. I had similar issues with a Samsung Galaxy S10e and Android 10 a couple of weeks ago. The phone never shows the Bluetooth icon, not in my app, not in other. And it somehow changed the Bluetooth handshake, as I did not get the expected messages in my connected hardware as before. Moreover, I used to disconnect the Bluetooth connection in Activity_Pause, which also did not work any longer. After closing my app the connection remains. So I had to toggle Bluetooth on/off at every new start of the app. In my opinion there is certainly something different with Android 10, a bug or a feature.
air cover Member Licensed User Longtime User Mar 30, 2021 #28 CHK said: I just stumbled accross this post. I had similar issues with a Samsung Galaxy S10e and Android 10 a couple of weeks ago. The phone never shows the Bluetooth icon, not in my app, not in other. And it somehow changed the Bluetooth handshake, as I did not get the expected messages in my connected hardware as before. Moreover, I used to disconnect the Bluetooth connection in Activity_Pause, which also did not work any longer. After closing my app the connection remains. So I had to toggle Bluetooth on/off at every new start of the app. In my opinion there is certainly something different with Android 10, a bug or a feature. Click to expand... Thanks. Upvote 0
CHK said: I just stumbled accross this post. I had similar issues with a Samsung Galaxy S10e and Android 10 a couple of weeks ago. The phone never shows the Bluetooth icon, not in my app, not in other. And it somehow changed the Bluetooth handshake, as I did not get the expected messages in my connected hardware as before. Moreover, I used to disconnect the Bluetooth connection in Activity_Pause, which also did not work any longer. After closing my app the connection remains. So I had to toggle Bluetooth on/off at every new start of the app. In my opinion there is certainly something different with Android 10, a bug or a feature. Click to expand... Thanks.
M MbedAndroid Well-Known Member Licensed User Longtime User Apr 1, 2021 #29 one of my customers confirmed that BT works on android 10 T290 samsung device. with a build SDK setted on 29. I will send him a build with SDK setted on 30 to check. This to inform you. BT icon is visible in the screen. Upvote 0
one of my customers confirmed that BT works on android 10 T290 samsung device. with a build SDK setted on 29. I will send him a build with SDK setted on 30 to check. This to inform you. BT icon is visible in the screen.
air cover Member Licensed User Longtime User Apr 1, 2021 #30 MbedAndroid said: one of my customers confirmed that BT works on android 10 T290 samsung device. with a build SDK setted on 29. I will send him a build with SDK setted on 30 to check. This to inform you. BT icon is visible in the screen. Click to expand... Thanks, for sure if the Bluetooth icon is visible on the status bar then my app has worked each time. Maybe not every Android 10 phone supports BLE?? Upvote 0
MbedAndroid said: one of my customers confirmed that BT works on android 10 T290 samsung device. with a build SDK setted on 29. I will send him a build with SDK setted on 30 to check. This to inform you. BT icon is visible in the screen. Click to expand... Thanks, for sure if the Bluetooth icon is visible on the status bar then my app has worked each time. Maybe not every Android 10 phone supports BLE??
M MbedAndroid Well-Known Member Licensed User Longtime User Apr 1, 2021 #31 air cover said: Maybe not every Android 10 phone supports BLE?? Click to expand... dont think so. Even the cheapest China crap phone supports BLE. Besides. I wasnt be able to check your app. Google wont allow me to download it. Upvote 0
air cover said: Maybe not every Android 10 phone supports BLE?? Click to expand... dont think so. Even the cheapest China crap phone supports BLE. Besides. I wasnt be able to check your app. Google wont allow me to download it.
air cover Member Licensed User Longtime User Apr 6, 2021 #32 MbedAndroid said: dont think so. Even the cheapest China crap phone supports BLE. Besides. I wasnt be able to check your app. Google wont allow me to download it. Click to expand... My app Version 6 should be available worldwide now, targeted at SDK 30. I went to Walmart and purchased 2 new test phones. Loaded my TVtilter app onto both new phones. Location on. Bluetooth on. Phone #1: Tracfone Blu View 1 Android 9 Bluetooth 4.2 ===> TVtilter app works perfectly. Bluetooth icon displays in upper status bar. Phone #2: Tracfone TCL A2 Android 10 Bluetooth 5.0 ===> No Bluetooth icon and TVtilter app doesn't work. Upvote 0
MbedAndroid said: dont think so. Even the cheapest China crap phone supports BLE. Besides. I wasnt be able to check your app. Google wont allow me to download it. Click to expand... My app Version 6 should be available worldwide now, targeted at SDK 30. I went to Walmart and purchased 2 new test phones. Loaded my TVtilter app onto both new phones. Location on. Bluetooth on. Phone #1: Tracfone Blu View 1 Android 9 Bluetooth 4.2 ===> TVtilter app works perfectly. Bluetooth icon displays in upper status bar. Phone #2: Tracfone TCL A2 Android 10 Bluetooth 5.0 ===> No Bluetooth icon and TVtilter app doesn't work.
f0raster0 Well-Known Member Licensed User Longtime User Apr 6, 2021 #33 air cover said: Phone #2: Tracfone TCL A2 Android 10 Bluetooth 5.0 ===> No Bluetooth icon and TVtilter app doesn't work. Click to expand... I can see your app doesn't ask to turn on fine location, it is a must do. Post#5 Bluetooth BLE Difference between Android 7.1.1 vs 10.0?? I've got a customer in the field who has Android 10. His Bluetooth is turned on and he can access BLE devices via apps. On each app screen at the very top his Bluetooth icon is displayed... ...except on mine! I've got 2 Android phones, one running 7.1.1 and the other running 9. On those 2... www.b4x.com Tip: Install the App nRF connect and try to connect to your hardware, you will see how it should ask and turn on the BLE and Fine location. Upvote 0
air cover said: Phone #2: Tracfone TCL A2 Android 10 Bluetooth 5.0 ===> No Bluetooth icon and TVtilter app doesn't work. Click to expand... I can see your app doesn't ask to turn on fine location, it is a must do. Post#5 Bluetooth BLE Difference between Android 7.1.1 vs 10.0?? I've got a customer in the field who has Android 10. His Bluetooth is turned on and he can access BLE devices via apps. On each app screen at the very top his Bluetooth icon is displayed... ...except on mine! I've got 2 Android phones, one running 7.1.1 and the other running 9. On those 2... www.b4x.com Tip: Install the App nRF connect and try to connect to your hardware, you will see how it should ask and turn on the BLE and Fine location.
air cover Member Licensed User Longtime User Apr 6, 2021 #34 f0raster0 said: I can see your app doesn't ask to turn on fine location, it is a must do. Post#5 Bluetooth BLE Difference between Android 7.1.1 vs 10.0?? I've got a customer in the field who has Android 10. His Bluetooth is turned on and he can access BLE devices via apps. On each app screen at the very top his Bluetooth icon is displayed... ...except on mine! I've got 2 Android phones, one running 7.1.1 and the other running 9. On those 2... www.b4x.com Tip: Install the App nRF connect and try to connect to your hardware, you will see how it should ask and turn on the BLE and Fine location. Click to expand... Thanks. Is there a difference between turning on Fine Location in code versus a user hitting the phone itself to turn it on manually? Upvote 0
f0raster0 said: I can see your app doesn't ask to turn on fine location, it is a must do. Post#5 Bluetooth BLE Difference between Android 7.1.1 vs 10.0?? I've got a customer in the field who has Android 10. His Bluetooth is turned on and he can access BLE devices via apps. On each app screen at the very top his Bluetooth icon is displayed... ...except on mine! I've got 2 Android phones, one running 7.1.1 and the other running 9. On those 2... www.b4x.com Tip: Install the App nRF connect and try to connect to your hardware, you will see how it should ask and turn on the BLE and Fine location. Click to expand... Thanks. Is there a difference between turning on Fine Location in code versus a user hitting the phone itself to turn it on manually?
f0raster0 Well-Known Member Licensed User Longtime User Apr 6, 2021 #35 air cover said: Thanks. Is there a difference between turning on Fine Location in code versus a user hitting the phone itself to turn it on manually? Click to expand... ahh, you wrote something about you wanted make it easier for the user.. What is the log when you try to connect? I created this App using the example from the forum, it use BLE5 and tested in Android 10 BLE Remote Control I was asked to developer a small App: "Remote Control" for the amplifiers that they have. for Android for iPhone www.b4x.com Upvote 0
air cover said: Thanks. Is there a difference between turning on Fine Location in code versus a user hitting the phone itself to turn it on manually? Click to expand... ahh, you wrote something about you wanted make it easier for the user.. What is the log when you try to connect? I created this App using the example from the forum, it use BLE5 and tested in Android 10 BLE Remote Control I was asked to developer a small App: "Remote Control" for the amplifiers that they have. for Android for iPhone www.b4x.com
air cover Member Licensed User Longtime User Apr 6, 2021 #36 f0raster0 said: What is the log when you try to connect? Click to expand... Here are the logs from the 2 new test phones and there is definitely a difference! Upvote 0
f0raster0 said: What is the log when you try to connect? Click to expand... Here are the logs from the 2 new test phones and there is definitely a difference!
f0raster0 Well-Known Member Licensed User Longtime User Apr 6, 2021 #37 air cover said: Here are the logs from the 2 new test phones and there is definitely a difference! Click to expand... yes, Post#5 Bluetooth BLE Difference between Android 7.1.1 vs 10.0?? I've got a customer in the field who has Android 10. His Bluetooth is turned on and he can access BLE devices via apps. On each app screen at the very top his Bluetooth icon is displayed... ...except on mine! I've got 2 Android phones, one running 7.1.1 and the other running 9. On those 2... www.b4x.com Upvote 0
air cover said: Here are the logs from the 2 new test phones and there is definitely a difference! Click to expand... yes, Post#5 Bluetooth BLE Difference between Android 7.1.1 vs 10.0?? I've got a customer in the field who has Android 10. His Bluetooth is turned on and he can access BLE devices via apps. On each app screen at the very top his Bluetooth icon is displayed... ...except on mine! I've got 2 Android phones, one running 7.1.1 and the other running 9. On those 2... www.b4x.com
OliverA Expert Licensed User Longtime User Apr 6, 2021 #38 1) What scan mode are you using? I'm pretty sure you need SCAN_MODE_LOW_POWER for scanning in the background (in a service) on 10 2) Samsung phones are notorious for killing your service in the background if you do not turn battery optimization off for you application 3) I hope you are using a filter. W/o a filter, background scanning will fail Upvote 0
1) What scan mode are you using? I'm pretty sure you need SCAN_MODE_LOW_POWER for scanning in the background (in a service) on 10 2) Samsung phones are notorious for killing your service in the background if you do not turn battery optimization off for you application 3) I hope you are using a filter. W/o a filter, background scanning will fail
air cover Member Licensed User Longtime User Apr 6, 2021 #39 Problem solved, thanks everyone. Added: AddPermission(android.permission.ACCESS_FINE_LOCATION) to the end of the Manifest and changed from Coarse to FINE in the code as was suggested early on in this thread. Now my code works in Android 10. Upvote 0
Problem solved, thanks everyone. Added: AddPermission(android.permission.ACCESS_FINE_LOCATION) to the end of the Manifest and changed from Coarse to FINE in the code as was suggested early on in this thread. Now my code works in Android 10.