Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to get pings when iOS app is in killed state #539

Closed
imrvshah opened this issue Nov 21, 2017 · 15 comments
Closed

Unable to get pings when iOS app is in killed state #539

imrvshah opened this issue Nov 21, 2017 · 15 comments
Labels
Webview plugin Webview plugin causes iOS app to freeze when booted in the background

Comments

@imrvshah
Copy link

Your Environment

  • Plugin version: 2.9.1
  • Platform: iOS
  • OS version:11.1.2
  • Device manufacturer / model: iPhoneX
  • Cordova version (cordova -v): 7.0.1
  • Cordova platform version (cordova platform ls): ios 4.5.4
  • Plugin config : Sample App

Expected Behavior

We should get notification after reboot the app from iOS

Actual Behavior

Not getting any notification in the killed state.

Steps to Reproduce

  1. Run the app in the device
  2. Kill the app
  3. start walking for 100 meter
  4. come back and see the pings on the console
  5. I cannot see any pings.
  6. When I open the app, I can see the pings ion console

Context

Debug logs

@imrvshah imrvshah changed the title Unable to get pings when killed the iOS app Unable to get pings when iOS app is in killed state Nov 21, 2017
@christocracy
Copy link
Member

You need to move at least 200 Meters.

@imrvshah
Copy link
Author

ahh, Interesting.
I will try one more time with more distance.

@christocracy
Copy link
Member

This aspect of the iOS plugin is highly reliable.

Just keep moving.

@imrvshah
Copy link
Author

Sounds good!
One more thing, Once the iOS reboot the app, it starts to get notifications, even if the app is killed. Am I correct?
I was checking this video https://www.youtube.com/watch?v=rFNDIQLEouo&feature=youtu.be&t=70

@christocracy
Copy link
Member

christocracy commented Nov 21, 2017 via email

@imrvshah
Copy link
Author

I did get the pings.
But I know the issue now what's wrong.

I am facing this issue in only iOS devices iOS 11.1.2 with iPhoneX , iPhone5s iOS 10.3.3.

it stops sending GPS pings and application is hanging on the splash screen. I guess the issue is the app is not rebooting but not sure

This is working fine on Android devices.

@christocracy
Copy link
Member

it stops sending GPS pings and application is hanging on the splash screen. I guess the issue is the app is not rebooting but not sure

Me too! I'm wiping my 6s to test alongside. Must be a Cordova issue related to app booting in background and periodically hanging on splash-screen. I'm seeing a lot of crashes too (unrelated to plugin).

I have no such issues with the React Native version (uses exact same TSLocationManager.framework as Cordova version.

@christocracy
Copy link
Member

I'm seeing some success on iPhone X after removing cordova-plugin-splashscreen.

I'm seeing Background Fetch notifications now. Wasn't seeing those before.

@christocracy
Copy link
Member

Just got another white-screen. Captured this in JS Console:

@christocracy
Copy link
Member

Still, I'm seeing much more stable behaviour now without cordova-plugin-splashscreen

@imrvshah
Copy link
Author

imrvshah commented Dec 1, 2017

I have given a try with removing cordova-splash-screen plugin but it did not work for me.

@christocracy
Copy link
Member

See this thread

@christocracy
Copy link
Member

There's something really strange going on with iPhone X apps in background. they refuse to suspend. You definitely want that fork of cordova-plugin-ionic-webview

cordova plugin remove cordova-plugin-ionic-webview
cordova plugin add https://github.com/ghenry22/cordova-plugin-ionic-webview#integratedFixes

@imrvshah
Copy link
Author

imrvshah commented Dec 4, 2017

I tried this solution over the weekend. It seems like the same issue on iPhoneX iOS 11.2. In the killed state it is hanging on the splash screen.
I am confirming that it still exists in iPhoneX and unfortunately I don't have any other device as of now to test on.

@christocracy
Copy link
Member

Yes, for me my iPhone X is still hanging sometimes.

@christocracy christocracy added Webview plugin Webview plugin causes iOS app to freeze when booted in the background and removed Waiting for feedback labels Aug 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Webview plugin Webview plugin causes iOS app to freeze when booted in the background
Projects
None yet
Development

No branches or pull requests

2 participants