Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This library not working with Android 14 #95

Open
FazilMuhammed opened this issue Jun 14, 2024 · 2 comments
Open

This library not working with Android 14 #95

FazilMuhammed opened this issue Jun 14, 2024 · 2 comments

Comments

@FazilMuhammed
Copy link

FazilMuhammed commented Jun 14, 2024

Anyone have working please help me how to fix this issue

react native version - 0.72.5
@supersami/rn-foreground-service - 2.1.1

@inyourcare
Copy link

add these in your manifest xml

<service android:name="com.supersami.foregroundservice.ForegroundService" android:foregroundServiceType="shortService"></service>
<service android:name="com.supersami.foregroundservice.ForegroundServiceTask" android:foregroundServiceType="shortService"></service>

but it only operates well within 3 minutes. (you will see timeout error)
at android14, service type is mandatory and it seems to need another way to do what we wanted from this package.
good luck~

@davidliu
Copy link
Contributor

davidliu commented Aug 5, 2024

https://developer.android.com/about/versions/14/changes/fgs-types-required

Choose the one appropriate for your usecase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants