Your Environment
- Plugin version:
- Platform: iOS or Android
- OS version:
- Device manufacturer and model:
- Running in Simulator:
- React Native version:
- Plugin configuration options:
- Link to your project:
Context
Expected Behavior
Please provide me the code in React Native for both iOS and Android.
My API endpoint is: https://bfsi.staypinc.com/api/admin/add/dummy/data
The API request should look like this:
{
"latitude": "30.34567",
"longitude": "10.90781",
"device": "ios",
"address": "TALKAT TEST TEST"
}
I need to send latitude and longitude to my API when the app is in the killed state, background, or foreground. I only need the code for this functionality.
Actual Behavior
Possible Fix
Steps to Reproduce
Context
Debug logs
Your Environment
Context
Expected Behavior
Please provide me the code in React Native for both iOS and Android.
My API endpoint is: https://bfsi.staypinc.com/api/admin/add/dummy/data
The API request should look like this:
{
"latitude": "30.34567",
"longitude": "10.90781",
"device": "ios",
"address": "TALKAT TEST TEST"
}
I need to send latitude and longitude to my API when the app is in the killed state, background, or foreground. I only need the code for this functionality.
Actual Behavior
Possible Fix
Steps to Reproduce
Context
Debug logs