Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(iOS, Android): add AppUUID Lib for plugins #5690

Merged
merged 3 commits into from Jun 17, 2022
Merged

Conversation

IT-MikeS
Copy link
Contributor

Adds support for generating and accessing a UUID for a specific installation of an app from the core library.

Note: This UUID does not persist across app installations, so if the app is uninstalled the UUID is lost.

Plugins can leverage this by using the AppUUID class in both iOS and Android:

Android Plugin:

// Get or Create And Get, the UUID
String uuid = AppUUID.getAppUUID(this.getActivity());

//Regenerate the UUID
AppUUID.regenerateAppUUID(this.getActivity());

iOS Plugin:

// Get or Create And Get, the UUID
let uuid = AppUUID.getAppUUID()

//Regenerate the UUID
AppUUID.regenerateAppUUID();

@IT-MikeS IT-MikeS marked this pull request as ready for review June 15, 2022 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants