[Migration] Ionic-native/http crashes Ionic DevApp

Hi there, I’m migrating to Ionic v4 and noticed a lot of things need to be rewritten. The first thing I stumble upon is the new way HTTP requests are handled. In our current version we’re using @angular/http to do this. But I’ve discovered we can use a Ionic Native function for this. So I’m experimenting with it.

I’ve got a simple setup right now. But I cannot test it in the browser because it is a native function. So I tried installing the Ionic DevApp and started ionic serve -c

First of all the devapp cannot find my app so I have to manually enter the ip address. All goes well until I start using the HTTP function. If I do the DevApp crashes.

Is this a know issue? Because I cannot find anything about this :frowning:

I’ve solved this issue by changing the way I use this.http.post. The way parameters work in a post are different in V4

this.http.post(‘https://www.mydomain.com/api/getSomething’, {“what”: this.value} , {‘Content-Type’: ‘application/x-www-form-urlencoded’} ).then(data => {
if (data.status == 200) { }
});