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

how to block initial loading only need after onwards #109

Open
SKHRAPP opened this issue Nov 7, 2024 · 0 comments
Open

how to block initial loading only need after onwards #109

SKHRAPP opened this issue Nov 7, 2024 · 0 comments

Comments

@SKHRAPP
Copy link

SKHRAPP commented Nov 7, 2024

please help @Raja0sama

I have check in button when click button functionality of button to fetch location and send to backend same function also written inside ReactNativeForegroundService.add_task when I button click service will start and sending location when check in button clicks and also inside ReactNativeForegroundService.add_task also works I need prevent initial time when click button only after onwards I need send locations to backend

 ReactNativeForegroundService.add_task(
        async () => {
           console.log("checking.....")
        },
        {
          delay:5 * 60 * 1000,
          onLoop: true,
          taskId: 'taskid',
          onError: e => console.log(`Error logging:`, e),
        },
      );
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

1 participant