LoginDeeplink

Deeplink

Configure deeplink-based login for N2I streaming apps.

Deeplink login allows the N2I streaming app to authenticate users by receiving an authentication token through a custom deeplink or URL scheme. This is useful when the user is already logged into a web portal, to avoid to login again within the app.

How it works

Your backend generates an authentication token and your website constructs a deeplink with the token as a parameter. Opening the deeplink launches your app on the N2I environment with the deeplink. Your streamed app extracts the token and validates it with your backend to establish the user's session.

Prerequisites

  • An APK supporting login through deeplinks
  • A backend able to generate deeplink authentication token
  • A website where the user can login, and get the N2I URL with the deeplink containing the login token

Example

To start the game with a deeplink you need to pass it URL encoded into URL when loading it:

  • Deeplink: com.game.my://start?token=bXl0b2tlbg%3D%3D
  • URL: https://<game domain>/?deeplinksURI=com.game.my%3A%2F%2Fstart%3Ftoken%3DbXl0b2tlbg%253D%253D