Comments (1)
Hi @fury21
By default, Apphud SDK creates own unique UUID user identifiers for each device. On iOS, User ID is saved to keychain and persists after app reinstall, however on Android User ID is reset after each reinstall due to technical limitations. If you want Apphud to manage User ID for you (recommended), then just initialize SDK without passing any User ID. Apphud guarantees User ID uniqueness for each device.
You can also initialise SDK with custom Device ID. This should be used if you plan to use logout / login features. You are responsible for User ID uniqueness and User Merging in this case. Best practice is to pass the same identifier to Device ID and User ID.
You can update your user's ID at any time after SDK initialization. This can be useful if you get your User ID some time after launch -> Apphud.updateUserID
Log out method will clear all saved data and reset SDK to uninitialised state. You must initialize SDK again after this method call. Use this method if you have your own login-logout logic.
User Merging
By default, users are being merged only if their App Store Receipts match. For example, if Apphud has a customer A with App Store Receipt A and we receive a new request from customer B with App Store Receipt A, then both customers are merged into customer A and User ID of the latter one is changed to A.
In other words, Apphud merges users by their original transaction id.
The device ID is the main identifier that uniquely identifies a customer. So even if you initialize SDK with the same custom User ID on different devices, several new users with the same User ID will be created since they have different Device IDs.
from apphudsdk.
Related Issues (20)
- Deferred purchase HOT 2
- Apphud does not display the purchase when using the iPhone Simulator and Local StoreKit Testing. HOT 3
- Apphud does not get back the subscriptions using Apphud.subscriptions() in the Widget (widget extension, SwiftUI, WidgetKit) on the real iPhone in Sandbox HOT 1
- Crash on setUserProperty HOT 1
- Crashes in SDK (placements) HOT 1
- 'shared' is unavailable in application extensions for iOS: Use view controller based solutions where appropriate instead. HOT 3
- MacOS support
- Kids-No-IDFA branch is gone HOT 2
- Delegate method for API call errors. HOT 1
- A lot of errors after update to 2.5.0 HOT 4
- How to use example? HOT 1
- Deferred purchase HOT 2
- Delegate method apphudNonRenewingPurchasesUpdated don't work correct with refunded purchase HOT 1
- iPhone SE (14.4) simulator, AppHud 2.5.7 not loading SKProducts HOT 2
- macOS: 'ApphudInternal' is only available in macOS 10.14.4 or newer HOT 3
- ApphudDelegate Bug? HOT 1
- Buying in sandbox HOT 1
- ApphudDelegate build error for macOS app (Not catalyst) ApphudSDK 3.0.1, Xcode 14.3 HOT 6
- set the price for subscriptions of the product HOT 1
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 apphudsdk.