Comments (3)
Hey @damirdavletov
As it is stated in docs enableAppNotTerminatingCleanlyDetection
api was tested only on iOS 6.1 and iOS 7 and may report false positives. I've tried to reproduce this issue today, but with no luck. To further investigate and reproduce this, i need some additional info:
- iOS version under test
- Device or simulator
- Setup code for
CLLocationManager
- Code for handler
locationManager:manager didUpdateLocations:locations
Best,
Murat
from hockeysdk-ios.
Hi @bmourat !
Thank you for the reply! We have used this detection for several years and it was very useful for us regardless of relatively small number of false positives. After we upgraded the Hockey SDK from v4.0.2 to v5.1.2 in one of our apps the number of such crashes rose from ~500pd to 60000pd. This number of false positives makes the feature useless for apps which wake up in background. After we downgraded to v4.1.6 the number when back down.
To answer your questions:
- The app's deployment target is iOS 10.0, so it happens on all iOS 10.x-11.x versions for us.
- We reliably reproduced it on devices when waking the process up with 'remote-notification' type of push. In hockeyApp we see that it's reproduced on all types of devices we support.
- CLLocationManager is set up like this for background
[locationManager startMonitoringSignificantLocationChanges];
- In
- (void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations
method we perform some location filtering and send them to server that's it. Unfortunately, I can't copy-paste the code here. The fact that it crashes on location update is my assumption, I did not test it.
Exact steps to reproduce:
- Launch the app and send it to background
- Launch another app e.g. Facebook
- Launch a lot of apps like Safari, open videos there etc. as many as possible.
- Launch Facebook again check that it has been purged by iOS. If not do step 3 again.
- Send remote-notification push to the app so it's woken up by iOS. Make sure it's running, but don't launch it (We checked server logs).
- Do steps 2-4 again until the app is purged again.
- Open the app and check that the appNotTerminatedCleanly event is reported.
These steps were performed by manual QA to reproduce, I'm sure you can do it easier with kill(getpid(), SIGKILL);
in background, but you get the idea. Please note that the app needs to be killed not by the user, but by iOS, otherwise it won't be woken up. For us it's easier to reproduce it with remote-notification push.
P.S. If you need more help reproducing let me know or ping me on Facebook: https://www.facebook.com/damir.davletov.12
from hockeysdk-ios.
Hey @damirdavletov,
could you please get in touch via support to share your code so we can repro the issue that you are seeing?
from hockeysdk-ios.
Related Issues (20)
- Set Custom AlertViewHandler Documentation HOT 2
- SDK logging an error instead of a debug or verbose message "The file “Application Support” doesn’t exist." HOT 14
- lastSessionCrashDetails sometimes doesn't work right HOT 5
- When is the next release? HOT 8
- HockeyApp Update alert does not popup HOT 7
- BITCrashManager ignores crashes after crashManagerStatus reset from .disabled HOT 3
- BITUpdateManager not updating automatically HOT 2
- Cancel update crashes the app HOT 5
- Crashes not appearing in dashboard HOT 10
- BITCrashManager cancelled HOT 3
- AppNotTerminatingCleanly event is not reported after process start HOT 4
- Feedback composing doesn't resize properly for keyboard HOT 4
- Unable to add New iOS Devices to Provisioning Profile HOT 5
- Cocoapods only updates to 5.1.2 HOT 3
- Carthage Compilation Failed in Xcode 10.2 beta 3 HOT 25
- No crash dialog in main app after crashes via KB extension HOT 4
- FOOM (fatal out of memory error) not being recorded? HOT 10
- Support Project Catalyst (UIKitForMac) HOT 3
- ITMS-90809: Deprecated API Usage - Apple will stop accepting submissions of apps that use UIWebView APIs . HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hockeysdk-ios.