Skip to content

Latest commit

 

History

History
56 lines (42 loc) · 3.47 KB

README.md

File metadata and controls

56 lines (42 loc) · 3.47 KB

Convose activity guide

How we pass the user information to your activity, we pass it as URL Parameters

Example:

[your_activity_url.com]?channel_id=9233c643e0378877a3c2&user_id=OWE0Yjg2NDU2MDQ1ZjBlYQ-OWQzYTA5MTUzMTNlNTA3Nw&username=Ibrahim&avatar=https://cdn.convose.com/images/variants/sgotn1609nou64rj9ocsed5g1m7e/952cd6b530142f7c7b959d72af7d5416b8145af5c5a3a1c418143950dc7f9eef

You can parse it like this First import useSearchParams at the top of your component

 import { useSearchParams } from "react-router-dom";

Inside your component you can access the passed URL Parameters like this

 const [searchParams, setSearchParams] = useSearchParams();
 const params = extractParams(searchParams);

Here is an example how you can design your activity to work with convose.com

For testing your activity if it is working or not you can try this technic

[your_activity_url.com]?channel_id=9233c643e0378877a3c2&user_id=OWE0Yjg2NDU2MDQ1ZjBlYQ-OWQzYTA5MTUzMTNlNTA3Nw&username=Ibrahim&avatar=https://cdn.convose.com/images/variants/sgotn1609nou64rj9ocsed5g1m7e/952cd6b530142f7c7b959d72af7d5416b8145af5c5a3a1c418143950dc7f9eef

Replace the [your_activity_url.com] to your domain, when you run your activity locally your domain is usually (http://localhost:3000), pass above params to your activity, and use the information inside the activity



Our mission is to add many multiplayer activities and games to Convose, searchable through a popup in the chat: Onboarding 129

Eventually, every possible activity/game you can imagine will be there. Our goal is to attract many developers to help us reach this goal by giving them 80% of any profits generated by the activities. Developers can choose when Youtube ads show over the activities: Onboarding 124 (8) Or have in-activity purchases or paid activities.

To build an activity for Convose just make a website of that activity, send us the URL and we will show the activity in Convose using Iframe. Ideally it should be responsive for both mobile & desktop. For mobile and desktop an activity would look like this: starting screen user joined after

Right now we're just beginning these activities, so there's no formal process yet, we're looking for developers who could talk/work closely with our team. Talk with us by joining our slack here: https://join.slack.com/t/convosecommunity/shared_invite/zt-2drs8s092-o5_JnX3tpjl8Q4zOw0cmSQ or talk with Josh on Convose.

Incase you can't host the website of your activity yourself we can also host it on our server.

First step would be to create the game e.g., codesandbox.io/ and test it with Josh. Then we'll work on integrating it with our platform (we will provide the user information like profile, name, etc ). Then we can test it directly on production to see what the users think. Then we can work on adding the adsense videos so your game can make money.

Hope to work with you!