i am making a put request from my ionic app to an api :
updateDeviceToken(params):Promise<any>{
return this.http
.put(this.endpoint + '/devicetoken',params)
.toPromise()
.then((response: any) => response);
}
i am getting this error :
ERROR Error: Uncaught (in promise): ProgressEvent: {"isTrusted":true}
when i run the app on the web i don't get any error and the PUT request is done correctly i get this error whenever i run on the emulator or real device