OK Games Platform allows you to develop HTML5 games and applications which can be played by users on any mobile platform available: mobile web, OK Android application an OK IOS application.
Setting up your application
To enable launching your game on all mobile platforms first of all you need to correctly set it up. For this you need to create new or edit existing app and enable HTML (Mobile) platform for it.
If it happens that you still do not have an application here is a manual that describes how to create an app.
For newly created app or for an existing one you can enable platform like this:
Integration with OK
After you’ve correctly configured your application it should be available by a direct link https://m.ok.ru/game/gameId.
Application ID can be acquired from multiple places, i.e. from an email that was sent to you after you’ve create an app. It also has app’s secret and public keys which are used to work with our API.
When app is launched on our platform a list of additional parameters will be passed for you to identify a user who launched your app, his session data and other useful information.
Full list can be found by this link.
If a game was launched on mobile platform additional parameter mob=true will be present.
Setting up SDK
To integrate your game with OK you can use JS SDK for mobile apps
API and SDK features
SDK allows you to do the following:
- create new post in user’s feed via publishing widget;
- invite or suggest a game to other users via game invite widget;
- invoke REST API methods.
We have some example applications which implement described features:
- application that uses or REST API is available via this link;
- application that uses or social widgets is available via this link
Payments and monetization
Instant Games can be monetized using this two options:
We also have example apps that implement this features:
For payments to work correct callback url must be specified in your app’s settings
Testing your app
At any time you can test your application.
By default it is available only to it’s creator. To make it available for other users you should follow this two steps:
- user to whom you want to provide an access to your app must get developer’s access;
- app’s creator must add this user to app developers list.
After this your app must be available to this user via direct link https://m.ok.ru/game/gameId. You can access your app on mobile web (m.ok.ru), OK android app or OK IOS app.
Before developing html5 game for our platform please consider our platform requirements
If your app is ready to be published it must be moderation by our games moderation team. To send it for moderation you should use special form
Select HTML mobile app as platform and proceed your request. If everything went fine you will get an email with credentials to our Jira for game developers.
If you have any questions linked with API or OK games platform that are not covered here please send your questions to firstname.lastname@example.org
Can i use same OK app for different platforms (Web, mobile, etc.)
Yes. Actually, this is a recommended way to develop a mobile app. In this case your web and mobile versions of a game will share user base, notifications and other good things.
Is there an option to use a different URLs for web and mobile platforms
Yes. If you need to specify different URLs for different platforms please send a request to email@example.com via email.