0

I have successfully taken build using ionic cordova build android. After installing the app in my mobile, for checking the enquiry. The post method method is not saved in the DB. So I taken the browser build for checking the error, but the browser is working fine.

Homepage.component.ts

  onSubmit(form) {
    let addurl;
      addurl = this._https.enquiry(this.homecontents);
   
    addurl.subscribe(success => {
      form.form.markAsPristine();
      form.resetForm();
     
    });
  }

Http.service.ts

 enquiry(senddata){
    return this.http.post(this.url_api+"enquiry",senddata);
  }

Browser: In browser the post method is working fine.

Android:

In the ionic after taking the build and check the post method its not working

karthiga
  • 5
  • 3

0 Answers0