Comments (2)
In case anyone else runs into similar problems I had to do two things to solve this.
I had to take care to call TelemetryManager.initialize
on the main thread as the thread that launches a file provider has no run-loop breaking the timer that sends out events.
To make sure unsent events are cached when extension closes I had to manually send out notifications in NSFileProviderExtension.invalidate()
making it look like the app was closing.
#if os(macOS)
NotificationCenter.default.post(name: NSApplication.willTerminateNotification, object: nil)
#elseif os(iOS)
NotificationCenter.default.post(name: UIApplication.didEnterBackgroundNotification, object: nil)
#endif
from swiftclient.
Fantastic, thank you!
from swiftclient.
Related Issues (20)
- TelemetryDeck reports/declares the wrong version numbers HOT 2
- Automatically send a11y stats HOT 1
- macCatalyst version numbers are wrong HOT 3
- visionOS Support HOT 1
- `UIApplication.willEnterForegroundNotification` is called each time an app enters the foreground on iOS, but only once on macCatalyst. HOT 5
- visionOS support: compilation warnings in xcode 14.3.1 HOT 1
- Don't crash application if invoked too early
- [iOS] "newSessionBegan" is not tracked on app launch for older apps without `SceneDelegate` HOT 2
- Access to DefaultSignalPayload HOT 3
- Add Privacy Labels for Swift SDK
- VisionOS: Use identifierForVendor
- Is First Run On Device
- LogHandler Initialiser Not Public HOT 3
- Time active
- Add support for CocoaPods
- Add a completion handler to TelemetryManager.send()
- Force-sending signals from cache when app enters background / terminated
- Use OSLog when available for structured logging features of Xcode 15
- Privacy manifest file - no nutrition label shown at App Store (SwiftClient 1.5.0) 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 swiftclient.