---
updatedAt: 2025-09-11T20:49:04.000Z
agentTools:
  projectIndex: https://docs.pley.com/llms.txt
---

# Implementation Overview

Conceptual flow to understand the Pley Connect implementation.

Pley Connect is initiated from two places; the `QR code` on the web and `Connect Code` in the mobile game. Both lead the user to the web game launching, which executes the account linking. This article goes through the technical flow and implementation.

For practical implementation instructions and code snippets, read the [implementation documentation here](https://docs.pley.com/docs/implementing-connect).

<Image align="center" width="400px" src="https://files.readme.io/c36119c-image.png" />

# Mobile Game: Connect Code

Starts from Mobile Game UI by requesting link code through the game backend.

<Embed url="https://www.youtube.com/watch?v=7m45zmUsGmw" title="Pley Connect | How to implement connect code?" favicon="https://www.google.com/favicon.ico" image="https://i.ytimg.com/vi/7m45zmUsGmw/hqdefault.jpg" provider="youtube.com" href="https://www.youtube.com/watch?v=7m45zmUsGmw" typeOfEmbed="youtube" html="%3Ciframe%20class%3D%22embedly-embed%22%20src%3D%22%2F%2Fcdn.embedly.com%2Fwidgets%2Fmedia.html%3Fsrc%3Dhttps%253A%252F%252Fwww.youtube.com%252Fembed%252F7m45zmUsGmw%253Ffeature%253Doembed%26display_name%3DYouTube%26url%3Dhttps%253A%252F%252Fwww.youtube.com%252Fwatch%253Fv%253D7m45zmUsGmw%26image%3Dhttps%253A%252F%252Fi.ytimg.com%252Fvi%252F7m45zmUsGmw%252Fhqdefault.jpg%26key%3D7788cb384c9f4d5dbbdbeffd9fe4b92f%26type%3Dtext%252Fhtml%26schema%3Dyoutube%22%20width%3D%22854%22%20height%3D%22480%22%20scrolling%3D%22no%22%20title%3D%22YouTube%20embed%22%20frameborder%3D%220%22%20allow%3D%22autoplay%3B%20fullscreen%3B%20encrypted-media%3B%20picture-in-picture%3B%22%20allowfullscreen%3D%22true%22%3E%3C%2Fiframe%3E" />

<Image align="center" width="600px" src="https://files.readme.io/d17469e-ecfec39-1.png" />

<Image align="center" width="600px" src="https://files.readme.io/240c970-06a6793-3.png" />

<Image align="center" width="300px" src="https://files.readme.io/b2cb3c0-3cd5447-4.png" />

# Mobile Game: QR Code

Starts with deep linking, triggered by scanning QR code and gaining a `link_code_id`.

<Embed url="https://www.youtube.com/watch?v=KACv4tHfYgM" title="Pley Connect | How to implement QR code?" favicon="https://www.google.com/favicon.ico" image="https://i.ytimg.com/vi/KACv4tHfYgM/hqdefault.jpg" provider="youtube.com" href="https://www.youtube.com/watch?v=KACv4tHfYgM" typeOfEmbed="youtube" html="%3Ciframe%20class%3D%22embedly-embed%22%20src%3D%22%2F%2Fcdn.embedly.com%2Fwidgets%2Fmedia.html%3Fsrc%3Dhttps%253A%252F%252Fwww.youtube.com%252Fembed%252FKACv4tHfYgM%253Ffeature%253Doembed%26display_name%3DYouTube%26url%3Dhttps%253A%252F%252Fwww.youtube.com%252Fwatch%253Fv%253DKACv4tHfYgM%26image%3Dhttps%253A%252F%252Fi.ytimg.com%252Fvi%252FKACv4tHfYgM%252Fhqdefault.jpg%26key%3D7788cb384c9f4d5dbbdbeffd9fe4b92f%26type%3Dtext%252Fhtml%26schema%3Dyoutube%22%20width%3D%22854%22%20height%3D%22480%22%20scrolling%3D%22no%22%20title%3D%22YouTube%20embed%22%20frameborder%3D%220%22%20allow%3D%22autoplay%3B%20fullscreen%3B%20encrypted-media%3B%20picture-in-picture%3B%22%20allowfullscreen%3D%22true%22%3E%3C%2Fiframe%3E" />

<Image align="center" width="600px" src="https://files.readme.io/f49f9fd-acf51b6-2.png" />

<Image align="center" width="600px" src="https://files.readme.io/1dcbaf8-06a6793-3.png" />

Then, the QR code automatically refreshes to the web game and it works exactly as in the example above.