Im facing the issue that my http request only works the second time when i click log in.
This is what gets fired when i click login:
var url = 'http:/blblblbsomewebsite.com/User_Login.php?email=' + credentials.email.toString() + '&password=' + credentials.password.toString(); this.http.get(url).map(res => res.text()).subscribe(data => this.accessgranted = data, () => console.log('Secret Quote: ' + this.accessgranted )); let access = (this.accessgranted === 'access'); observer.next(access); observer.complete();
Its a normal Http request to see if the user have the access to login.
The first time it gets fired i always gets a time out i think cause the log doesnt output something at all.
At the second time i click it right after the first click it works and i log in.
What kind of weird error is this? Its annoying that on every http request the user must fire things twice.
Issue is present on browser and also on ionic view android/ios.