appleshaman / CarPlayBLE

ESP32 Navigator for Google map and it's Android app
GNU General Public License v3.0
65 stars 10 forks source link

Impossible to start NotificationListener #2

Open dughy opened 1 year ago

dughy commented 1 year ago

after I compile the android project with Android studio, I can't activate notification listener on the phone, but work on simulator. I'm new in android project so I don't know where is the problem, I need help!!

dughy commented 1 year ago

ok, i solved this problem, there's a new control inside android, but now when I activate the notification the green dot on bleservice change to grey. I try to search device before activation of notification to see ble work but no device found... so my problem I bigger then before thanks

dughy commented 1 year ago

New update: I can connect android app and Arduino but stay connect only few second and with maps in navigation don't have data

appleshaman commented 1 year ago

Hi, I am not sure what type of device you use, could you provide some more information about it?

dughy commented 1 year ago

Hi, I am not sure what type of device you use, could you provide some more information about it?

i have android 12 device and I try to connect with your Arduino sketch, but modified with display code elimination (I have a esp32-s3 with 7inch display and use lvgl library)

appleshaman commented 1 year ago

I just tried it on one of my phones with Android 12, and the program works well, have you tried it on different devices? Also, you could try to delete the bleService code inside of the notificationService and see if the bleService keeps shutdown after the notification service starts

dughy commented 1 year ago

I just tried it on one of my phones with Android 12, and the program works well, have you tried it on different devices? Also, you could try to delete the bleService code inside of the notificationService and see if the bleService keeps shutdown after the notification service starts

i trust your code work, but I suppose problem is related to the creation of apk... I haven't experience with android, so it's possible to have an apk to test? sorry I realise now it's android 13

appleshaman commented 8 months ago

Hello, sorry I did not receive the notification from your post, Yes you can download the compiled APK from the project folder

huukhoa1412 commented 3 months ago

image image

I not find icon app and dont open the app .I haven't experience with android, so it's possible to have an apk to test? sorry I realise now it's android 14

appleshaman commented 3 months ago

Hi, I just uploaded a new one with new code, but anyway, I only tested it with the emulator since I do not have any real devices with Android 14

huukhoa1412 commented 3 months ago

Hi, I just uploaded a new one with new code, but anyway, I only tested it with the emulator since I do not have any real devices with Android 14 Scan ok image image but I start to use Google map app to navigate then image and instantly esp32 "No Connection" image

appleshaman commented 3 months ago

I could not reproduce this issue, I just tested it on the physical device OnePlus PHP110 with Android 14, and it works OK, maybe you can download the project and try it on Android Studio and see what shows up in the prompt

huukhoa1412 commented 3 months ago

it dont works OK . open start google map then esp32 disconnect , screen "No Connect" . I I haven't experience with android,