samedi 9 janvier 2021

Http Requests are notworking after build apk [ionic 5]

I have developed a app using ionic 5. http requests are working fine in browser. But not working after build apk. it shows this error message

[ERROR:ssl_client_socket_impl.cc(960)] handshake failed; returned -1, SSL error code 1, net_error -202

i have code like this:

getCategories(){
return new Promise((resolve,reject)=>{
  this.http.get(`${environment.apiUrl}/categories/list`).subscribe((res:any)=>{
    resolve(res);
  },(err)=>{
    reject(err);
  })
})

}

Please help me to fix this issue.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire