question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Your Environment

  • Plugin version:
  • Platform: iOS or Android
  • OS version:
  • Device manufacturer and model:
  • Running in Simulator:
  • Cordova version (cordova -v):
  • Cordova platform version (cordova platform ls):
  • Plugin configuration options:
  • Link to your project:

Context

Just want to ask something about data sending, i am using asp.net as server to retrieve data from cordova-plugin-background-geolocation mobile apps. i try to use request.param to read the data but ufortunately i did’nt get the data from postTemplate: { lat: ‘@latitude’, lon: ‘@longitude’, act:‘APOKONO’, provider: ‘@provider’, locationProvider: ‘@locationProvider’, time: ‘@time’, accuracy: ‘@accuracy’, speed: ‘@speed’, altitude: ‘@altitude’, bearing: ‘@bearing
} only retrieve data from header httpHeaders: { ‘AUTH’: ‘JSDFSDS77SDF8SD56S5DF86SD9F799SAD7U’ }

so can i know how the actual this plugin work to send the data to server?

Expected Behavior

============ READ FORM ================= ============ END FORM ================= ============ READ PARAM ================= live_loc:MOBILE_LOCATION_TEST ALL_HTTP:HTTP_CONNECTION:Keep-Alive HTTP_CONTENT_LENGTH:199 HTTP_CONTENT_TYPE:application/json HTTP_ACCEPT_ENCODING:gzip HTTP_HOST:192.168.8.165 HTTP_USER_AGENT:Dalvik/2.1.0 (Linux; U; Android 10; LYA-L29 Build/HUAWEILYA-L29) HTTP_AUTH:JSDFSDS77SDF8SD56S5DF86SD9F799SAD7U

ALL_RAW:Connection: Keep-Alive Content-Length: 199 Content-Type: application/json Accept-Encoding: gzip Host: 192.168.8.165 User-Agent: Dalvik/2.1.0 (Linux; U; Android 10; LYA-L29 Build/HUAWEILYA-L29) AUTH: JSDFSDS77SDF8SD56S5DF86SD9F799SAD7U

APPL_MD_PATH:/LM/W3SVC/1/ROOT/dbagent APPL_PHYSICAL_PATH:D:\System Development\Published\dBAgent
AUTH_TYPE: AUTH_USER: AUTH_PASSWORD: LOGON_USER: REMOTE_USER: CERT_COOKIE: CERT_FLAGS: CERT_ISSUER: CERT_KEYSIZE: CERT_SECRETKEYSIZE: CERT_SERIALNUMBER: CERT_SERVER_ISSUER: CERT_SERVER_SUBJECT: CERT_SUBJECT: CONTENT_LENGTH:199 CONTENT_TYPE:application/json GATEWAY_INTERFACE:CGI/1.1 HTTPS:off HTTPS_KEYSIZE: HTTPS_SECRETKEYSIZE: HTTPS_SERVER_ISSUER: HTTPS_SERVER_SUBJECT: INSTANCE_ID:1 INSTANCE_META_PATH:/LM/W3SVC/1 LOCAL_ADDR:192.168.8.165 PATH_INFO:/dbagent/j PATH_TRANSLATED:D:\System Development\Published\dBAgent\j QUERY_STRING:live_loc=MOBILE_LOCATION_TEST REMOTE_ADDR:192.168.8.142 REMOTE_HOST:192.168.8.142 REMOTE_PORT:49250 REQUEST_METHOD:POST SCRIPT_NAME:/dbagent/j SERVER_NAME:192.168.8.165 SERVER_PORT:80 SERVER_PORT_SECURE:0 SERVER_PROTOCOL:HTTP/1.1 SERVER_SOFTWARE:Microsoft-IIS/10.0 URL:/dbagent/j HTTP_CONNECTION:Keep-Alive HTTP_CONTENT_LENGTH:199 HTTP_CONTENT_TYPE:application/json HTTP_ACCEPT_ENCODING:gzip HTTP_HOST:192.168.8.165 HTTP_USER_AGENT:Dalvik/2.1.0 (Linux; U; Android 10; LYA-L29 Build/HUAWEILYA-L29) HTTP_AUTH:JSDFSDS77SDF8SD56S5DF86SD9F799SAD7U ============ END PARAM =================

Actual Behavior

Possible Fix

Steps to Reproduce

Context

Debug logs

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
isinocasiocommented, Jan 28, 2021

In case someone has stucked with this (in php at least), I could retrieve the information via $rawData = file_get_contents(“php://input”) Could not retrieve information via $request nor $post variable, thats because it is not a “common webform post kind”.

0reactions
isinocasiocommented, Feb 9, 2021

$_POST and $_REQUEST variables are empty. I also have got only headers

Try: $data = file_get_contents(“php://input”);

Read more comments on GitHub >

github_iconTop Results From Across the Web

What does it mean when MySQL is in the state "Sending data"?
It means it's transmitting data from its process to the client. If you're seeing Sending data as a step that takes time after...
Read more >
sending data - Amazon Aurora - AWS Documentation
The sending data thread state indicates that a thread is reading and filtering rows for a query to determine the correct result set....
Read more >
Sending and Receiving Data - IBM
Sending and Receiving Data ... Two data transmission methods are possible: Transmission of data such that one data record on the sender's side...
Read more >
What does "Sending data" mean in the mysql process list?
TL;DR "Sending data" seems to mean we are sending data about the query to the function that gathers that information together. It is...
Read more >
Sending Data (The GNU C Library)
This function returns the number of bytes transmitted, or -1 on failure. If the socket is nonblocking, then send (like write ) can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found