Comments (2)
(If you don't mind, I'm closing this ticket since #30 describes better what can be done in code, but feel free to continue the discussion)
from swiftclient.
Hi @mflint, thanks for asking.
Providing a way to supply a default user is definitely on the roadmap. It gets repetitive and error prone to supply a user identifier each time if it's not the default one. It is one of the very next things I want to tackle in the Swift Client.
The TelemetryManager.defaultUserIdentifier
is based on UIKit's identifierForVendor
property where available, so you could in theory just query that, but here's where you're starting to bump up against one of the core principles of AppTelemetry:
The user identifier, whatever it ends up being, is hashed once on the client device, and then once more, with a secret salt, on the server before the signal is saved. This is because only if it is not possible for you as the developer, nor for us as the people who have access to the database to recreate the link between the person who is your customer and the data in our database... only then it is considered anonymous as defined by the GDPR and CCPA.
In other words, we're making it hard or even impossible for your to find out a link between signals and actual users because otherwise that signal data would fall under GDPR and you'd have to disclose that to your users in your privacy policy. (I am not a lawyer, this is not law advice, check with a lawyer to see if you have to do additional disclosures like showing a consent banner)
If you want to purposefully establish a link between signals and your users, you can use the payload metadata for that: Generate a custom identifier and pass it along in the payload metadata. Your signals will then no longer be anonymized but pseudonimized. Make sure you comply with the GDPR and CCPA if you do this.
Ticket #30 might help you there, I'm hoping to implement it soon.
Again, thanks for your question. This is probably not exactly the answer you want to hear, but it helped me think about our position on this. If we ever build a sister system to AppTelemetry whose purpose is crash reporting, the defaults might be different there.
from swiftclient.
Related Issues (20)
- TelemetryDeck reports/declares the wrong version numbers HOT 2
- Event delivery from app extensions 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.