GithubHelp home page GithubHelp logo

Login/logut methods in ios about apphudsdk HOT 1 CLOSED

apphud avatar apphud commented on September 2, 2024
Login/logut methods in ios

from apphudsdk.

Comments (1)

vlr-code avatar vlr-code commented on September 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.