Trying to use native http but it's not working

Below is my code. It’s just returning undefined:

    this.http.post(
      'https://abcd.com/request.api',
      JSON.stringify(requestData),
      {
        'Content-Type': 'application/json'
      }
    )
    .then(data => {
  
      console.log(data.status);
      console.log(data.data); // data received by server
      console.log(data.headers);
  
    })
    .catch(error => {
  
      console.log(error.status);
      console.log(error.error); // error message as string
      console.log(error.headers);
  
    });

Try
console.log(JSON.stringify(data.status));
console.log(JSON.stringify(data.data));
console.log(JSON.stringify(data.headers));

Hope it may work

Same Result:

first check whether data is coming or not.

try console.log(data) and check any response is coming

Checked by PostMan extension. Data is coming

check with headers what has to pass to url…

Getting this response now

is it working now?..

use this plugin https://ionicframework.com/docs/native/status-bar/