angeloraso / capacitor-background-mode

15 stars 11 forks source link

Migration to capacitor 6 possible / planned? #7

Open heffthedev opened 6 months ago

heffthedev commented 6 months ago

As the title says, is the migration to capacitor 6 planned for this plugin?

Cheers!

patrickjquinn commented 6 months ago

I'd also be keen to know if this would be possible! Looks to be crashing Android atm on 6

kolawoletech commented 5 months ago

You just need to do a couple of things, first read the documentation here (if your app targets Android 14, it must specify appropriate foreground service types. As in previous versions of Android, multiple types can be combined) https://developer.android.com/about/versions/14/changes/fgs-types-required#camera

I used the specialUse foreground type, see below attached image, make sure to use the appropriate type, examples are camera, location, phonecall, mediaPlayback, shortService etc.

pr anura
angeloraso commented 4 months ago

Sorry for the delay in responding. I have been disconnected from this development. It is planned to perform the capacitor migration for this and other plugins. I don't have a date but it will be done in the near future

ramisalminen commented 3 months ago

@angeloraso Have you got any updates or schedule estimation on this? Thanks!

dreadnought commented 2 months ago

I'm using this fork, and it works fine with Capacitor 6.