Closed MazahirA closed 7 months ago
Your server seemed happy enough to return 200.
Where are you expecting the data in the HTTP request?
Like this, when I tried it with Postman: The ''params: { "latitudee": 12.3 }'' or location is missing.
199.188.1.199 POST /abc.com/Controller/Test params: { "latitudee": 12.3 } 80 - 192.168.5.171 PostmanRuntime/7.33.0 - 200 0 0 1530
Where are you expecting the data in the HTTP request?
I'm expecting the plugin to attach the data after the ~/Test, just like it does when I test it with Postman.
199.188.1.199 POST /abc.com/Controller/Test "Here" - 80 - 195.143.5.22 okhttp/3.12.13 - 200 0 11 12321
You're likely not looking in the right place for the data. You'll find the data in the "request body". The entire request body is JSON data.
How do we get that data on server side? I mean how can we catch that data to insert in the DB? I'm using .NET on server side.
I don't know. I've never used .NET. Search the .NET docs "retrieve raw json body of http request"
Thank you for the time and help.
Resolved. The data arrives in the body and we have to read the raw JSON, and use required properties. In addition to that we can customize the desired properties in the 'params' to easily get it. Thank you @christocracy for the help.
App is hitting the server, but attaching no data with it. My Environment
cordova -v
): 12.0.0 (cordova-lib@12.0.1)cordova platform ls
): android 12.0.1#ready
:Expected Behavior:
The plugin should send/attach data along with the URL.
Actual Behavior
The plugin is hitting the server with no data attached with the URL.
Steps to Reproduce
Context
I was trying to track the current location of a test user and send the locations to the server.
Debug logs