android / health-samples

Apache License 2.0
253 stars 146 forks source link

Test with targetSdk 34 #277

Closed yschimke closed 1 week ago

buiduclam09 commented 2 months ago

I think startForground: image

yschimke commented 2 months ago

Thanks, this agrees https://medium.com/@domen.lanisnik/guide-to-foreground-services-on-android-9d0127dc8f9a

yschimke commented 2 months ago

@buiduclam09 Thanks, updated

breanatate commented 3 weeks ago

Did some more testing -- even with the most recent bump to 34 and these changes, the exception will appear if the screen is off when the app launches.

I wasn't observing this with the emulator because the emulator is (normally) awake while the app launches. If you palm the emulator or start with screen off on a physical device, the issue persists.