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

[Android] Foreground Service works fine on dev build but looks like do nothing on a preview build #1040

Closed
KaiValar opened this issue May 22, 2024 · 2 comments

Comments

@KaiValar
Copy link

Hello, folks!

I coded an app using this lib to create a Foreground Service to scan for iBeacons on background. Works great on my dev app, but when I compile a preview build, the notification of Foreground Service shows but the work looks like doesn't run.

My enviroment:
notifee version: 7.8.2

expo-env-info 1.2.0 environment info:
System:
OS: Linux 6.8 openSUSE Tumbleweed 20240520
Shell: 5.2.26 - /bin/bash
Binaries:
Node: 20.12.1 - /usr/bin/node
npm: 10.5.0 - /usr/local/bin/npm
npmPackages:
expo: ^49.0.20 => 49.0.20
react: 18.2.0 => 18.2.0
react-native: 0.72.12 => 0.72.12
Expo Workflow: bare

I added this line to AndroidManifest.xml (specialUse was a desperate try, but didn't work)
<service android:name="app.notifee.core.ForegroundService" android:foregroundServiceType="location|dataSync|specialUse" />

Any ideas of what is happening?

Thanks!

@KaiValar
Copy link
Author

Update
Looks like Foreground Service is really working, BLE scanner and etc. but the listeners declared there not.

Copy link

Hello 👋, to help manage issues we automatically close stale issues.

This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?

This issue will be closed in 15 days if no further activity occurs.

Thank you for your contributions.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant