Ionic API requests not completing - stays in pending status
up vote
0
down vote
favorite
I'm building an ionic app, with ionic 3 and angular 5.2. Everything has been working well for the longest time I can remember, until recently I noticed weird behavior.
As from the image, the request stays in pending status forever.
The backend is done in PHP, and it's working fine in a different app as well as website without issues. The log for the above requests is as shown below.
I've checked this questions among other solutions, but none seems to resolve my issue.
I'm using ionic-cli 4.3.1 (tried with earlier versions too).
ionic-framework ionic3 ionic-native
This question has an open bounty worth +50
reputation from Murwa ending in 3 days.
Looking for an answer drawing from credible and/or official sources.
add a comment |
up vote
0
down vote
favorite
I'm building an ionic app, with ionic 3 and angular 5.2. Everything has been working well for the longest time I can remember, until recently I noticed weird behavior.
As from the image, the request stays in pending status forever.
The backend is done in PHP, and it's working fine in a different app as well as website without issues. The log for the above requests is as shown below.
I've checked this questions among other solutions, but none seems to resolve my issue.
I'm using ionic-cli 4.3.1 (tried with earlier versions too).
ionic-framework ionic3 ionic-native
This question has an open bounty worth +50
reputation from Murwa ending in 3 days.
Looking for an answer drawing from credible and/or official sources.
Whats the error in the console?
– Anand Raj
Nov 15 at 8:17
hey @AnandRaj, there is none.
– Murwa
Nov 15 at 9:08
But there is one in your screen shot
– Anand Raj
Nov 15 at 10:11
No, that's a google maps script failing to load. It doesn't affect this though...
– Murwa
Nov 15 at 10:44
Ok. Can you share your code?
– Anand Raj
Nov 15 at 10:48
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm building an ionic app, with ionic 3 and angular 5.2. Everything has been working well for the longest time I can remember, until recently I noticed weird behavior.
As from the image, the request stays in pending status forever.
The backend is done in PHP, and it's working fine in a different app as well as website without issues. The log for the above requests is as shown below.
I've checked this questions among other solutions, but none seems to resolve my issue.
I'm using ionic-cli 4.3.1 (tried with earlier versions too).
ionic-framework ionic3 ionic-native
I'm building an ionic app, with ionic 3 and angular 5.2. Everything has been working well for the longest time I can remember, until recently I noticed weird behavior.
As from the image, the request stays in pending status forever.
The backend is done in PHP, and it's working fine in a different app as well as website without issues. The log for the above requests is as shown below.
I've checked this questions among other solutions, but none seems to resolve my issue.
I'm using ionic-cli 4.3.1 (tried with earlier versions too).
ionic-framework ionic3 ionic-native
ionic-framework ionic3 ionic-native
edited Nov 12 at 17:55
James Z
11.1k71735
11.1k71735
asked Nov 12 at 17:30
Murwa
704815
704815
This question has an open bounty worth +50
reputation from Murwa ending in 3 days.
Looking for an answer drawing from credible and/or official sources.
This question has an open bounty worth +50
reputation from Murwa ending in 3 days.
Looking for an answer drawing from credible and/or official sources.
Whats the error in the console?
– Anand Raj
Nov 15 at 8:17
hey @AnandRaj, there is none.
– Murwa
Nov 15 at 9:08
But there is one in your screen shot
– Anand Raj
Nov 15 at 10:11
No, that's a google maps script failing to load. It doesn't affect this though...
– Murwa
Nov 15 at 10:44
Ok. Can you share your code?
– Anand Raj
Nov 15 at 10:48
add a comment |
Whats the error in the console?
– Anand Raj
Nov 15 at 8:17
hey @AnandRaj, there is none.
– Murwa
Nov 15 at 9:08
But there is one in your screen shot
– Anand Raj
Nov 15 at 10:11
No, that's a google maps script failing to load. It doesn't affect this though...
– Murwa
Nov 15 at 10:44
Ok. Can you share your code?
– Anand Raj
Nov 15 at 10:48
Whats the error in the console?
– Anand Raj
Nov 15 at 8:17
Whats the error in the console?
– Anand Raj
Nov 15 at 8:17
hey @AnandRaj, there is none.
– Murwa
Nov 15 at 9:08
hey @AnandRaj, there is none.
– Murwa
Nov 15 at 9:08
But there is one in your screen shot
– Anand Raj
Nov 15 at 10:11
But there is one in your screen shot
– Anand Raj
Nov 15 at 10:11
No, that's a google maps script failing to load. It doesn't affect this though...
– Murwa
Nov 15 at 10:44
No, that's a google maps script failing to load. It doesn't affect this though...
– Murwa
Nov 15 at 10:44
Ok. Can you share your code?
– Anand Raj
Nov 15 at 10:48
Ok. Can you share your code?
– Anand Raj
Nov 15 at 10:48
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
I had a similar problem. After some time, the requests were placed in a "pending" state. I solved this thanks to the Cordova Background Plugin by doing:
cordova.plugins.backgroundMode.setDefaults({ silent: true });
cordova.plugins.backgroundMode.on('activate', function() {
cordova.plugins.backgroundMode.disableWebViewOptimizations();
});
cordova.plugins.backgroundMode.enable();
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
I had a similar problem. After some time, the requests were placed in a "pending" state. I solved this thanks to the Cordova Background Plugin by doing:
cordova.plugins.backgroundMode.setDefaults({ silent: true });
cordova.plugins.backgroundMode.on('activate', function() {
cordova.plugins.backgroundMode.disableWebViewOptimizations();
});
cordova.plugins.backgroundMode.enable();
add a comment |
up vote
0
down vote
I had a similar problem. After some time, the requests were placed in a "pending" state. I solved this thanks to the Cordova Background Plugin by doing:
cordova.plugins.backgroundMode.setDefaults({ silent: true });
cordova.plugins.backgroundMode.on('activate', function() {
cordova.plugins.backgroundMode.disableWebViewOptimizations();
});
cordova.plugins.backgroundMode.enable();
add a comment |
up vote
0
down vote
up vote
0
down vote
I had a similar problem. After some time, the requests were placed in a "pending" state. I solved this thanks to the Cordova Background Plugin by doing:
cordova.plugins.backgroundMode.setDefaults({ silent: true });
cordova.plugins.backgroundMode.on('activate', function() {
cordova.plugins.backgroundMode.disableWebViewOptimizations();
});
cordova.plugins.backgroundMode.enable();
I had a similar problem. After some time, the requests were placed in a "pending" state. I solved this thanks to the Cordova Background Plugin by doing:
cordova.plugins.backgroundMode.setDefaults({ silent: true });
cordova.plugins.backgroundMode.on('activate', function() {
cordova.plugins.backgroundMode.disableWebViewOptimizations();
});
cordova.plugins.backgroundMode.enable();
answered Nov 15 at 14:16
Damian Celmer
62
62
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53267259%2fionic-api-requests-not-completing-stays-in-pending-status%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Whats the error in the console?
– Anand Raj
Nov 15 at 8:17
hey @AnandRaj, there is none.
– Murwa
Nov 15 at 9:08
But there is one in your screen shot
– Anand Raj
Nov 15 at 10:11
No, that's a google maps script failing to load. It doesn't affect this though...
– Murwa
Nov 15 at 10:44
Ok. Can you share your code?
– Anand Raj
Nov 15 at 10:48