DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 963,673 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
VYou
VYou

Posted on • Originally published at vyou-app.com on

VYou Guides: Android

In this post we are introducing the Android SDK for VYou. This library includes a client SDK along with some artifacts and a sample to streamline your workflow. The SDK for Android is written in Kotlin using Kotlin Cross-Platform to provide support for Android and iOS applications.

VYou SDK for Android: a guide

In this tutorial, we’ll explain what the VYou Android SDK is and how to get started with it. The Android SDK consist of the following artifacts:

  • KMM-Client: Client to manage operations with VYou authentication server.
  • Android-Google: Library to sign in/up in VYou through Google libraries.
  • Android-Facebook: Library to sign in/up in VYou through Facebook libraries.
  • Android-Stripe: Library to make payments and subscriptions through Stripe.

Getting Started

After you have completed the installation & updated modules, you can initialize the client by initializing the VYou class, which is the main entry point for all the operations in the library. In order to create the client, you’ll need to follow our documentation: https://docs.vyou-app.com/guide/android-sdk.html#initialize-the-client

After initializing the client, you can use it through the application calling VYou.instance (). The client provides functionality to authenticate a user and manage the user’s information.

Each method returns a VYouCredentials class that contains the information to authorize any call covered by VYou auth server. Internally, this information is saved in encrypted shared preferences and can be recovered through these credentials and helper methods to check the user’s session.

If you already have a Google or Facebook implementation in your application, you can use these methods to sign in to VYou, further we will explain the social artifacts that cover the implementation of social libraries.

To register a new user on the platform, firstly we will need to provide an email and the acceptance of the required terms of use & privacy policy. After signing up, the user will receive a confirmation code in the email provided in the previous step. The user must copy this code and enter it to verify registration. Lastly, if the code provided is valid, the user must register a password related to the email.

All these steps are needed to ensure all security steps related to the OAuth protocol.

Profile

Users will have access to the information they will provide to the application via VYou. By creating a profile at VYou users can retrieve or update the current information by following this guide.

Payments

VYou offers a Stripe integration to make payments through Stripe, so the SDK provides two methods to create payments through the VYou platform. In case you don’t have an integration with Stripe, we have created a library to explain all Stripe integration through the VYou platform.

Integrations

To facilitate integration with Google and Facebook, we have created several artifacts to manage login through each platform. To start using them, first install each library you want to use through the VYou Builder that you will find in the VYou Client getting started section.

VYou also wants to enhance your customers’ experience, the SDK also provides a solution that uses Stripe to make payments and create subscription methods. We have created libraries just to help you out.

Learn more about VYou asking for a FREE demo here. For more details about integrations & code implementation, check our documentation.

Top comments (0)

Update Your DEV Experience Level:

Settings

Go to your customization settings to nudge your home feed to show content more relevant to your developer experience level. πŸ›