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

Sending data format #13

Open
Witexp opened this issue Apr 29, 2021 · 0 comments
Open

Sending data format #13

Witexp opened this issue Apr 29, 2021 · 0 comments

Comments

@Witexp
Copy link

Witexp commented Apr 29, 2021

Plugin version:

Platform: Android

OS version: Android 10

Device manufacturer and model:

Running in Simulator:

React Native version: 0.63.2

Plugin configuration options:

At the moment, the application sends data in the form of an array, but not all servers can accept this data format. Is it possible to wrap this array in an object?
Original -
[{
"lat": '@latitude',
"lon": '@longitude',
"dt": '@time'
}]
Needed -
{"data":
[{
"lat": '@latitude',
"lon": '@longitude',
"dt": '@time'
}]
}

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