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

Not receiving events #10

Open
karimApps142 opened this issue Aug 18, 2023 · 2 comments
Open

Not receiving events #10

karimApps142 opened this issue Aug 18, 2023 · 2 comments

Comments

@karimApps142
Copy link

I am facing an issue where I am not receiving any events despite having granted the necessary permissions and set the threshold to 1 minute. I have also selected all apps for monitoring.

@karimApps142
Copy link
Author

karimApps142 commented Aug 18, 2023

I received the following log message in the Xcode console window:

DeviceActivity.AppLoggedTimeDaily.17
2023-08-18 11:27:27.555018+0500 Timeout[2755:926609] [react-native-device-activity] ✅ Succeeded with Starting Monitor Activity: DeviceActivity.AppLoggedTimeDaily.18
2023-08-18 11:27:27.655758+0500 Timeout[2755:926609] [react-native-device-activity] ❌ Failed with Starting Monitor Activity: This application is monitoring excessive activities
Please note that the log message was not generated from the React Native bundler, but from the Xcode console window while running the project. I copy the code from the example file.

@robertherber
Copy link
Member

robertherber commented Aug 21, 2023

Yeah, I think the example isn't quite working right now. Don't have time to dig further into it right now, hopefully in a month or so.

The "excessive activities" error is because the example tries to register 24 activities (one per hour) - and apparently there is a limit on 20. Not sure if this is what causes the events not to trigger for you, or if the first 20 activities still work as expected.

One thing that another developer noted is that you might have to add this to your app.json. If that solves it for you we should add it to the config plugin.

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

2 participants