[Gametize Tech] API: Platform Mode Support Summary
FeaturedThe Gametize application (React JS/Flutter) is designed with Package-Level architecture in mind. However, there are needs for a Platform-Level application (i.e. Gametize.com app) and to support such application, we have decided to implement Platform-Mode Support.
Platform-Mode Benefits
-
Gametize application to stay as a Package-Level “container”.
-
Gametize application does not need customisation or custom configuration implementation.
Limitations
-
A Gametize platform can only support a single Platform-Mode application.
-
Platform-Mode is mostly applied to functions that are required in Gametize application home screen/page.
Configuring Platform-Mode
Platform-Mode for a given application can be configured in Config.java. Specify the Package ID that the application API Key is associated with in DASHBOARD_PLATFORM_MODE_PACKAGE_ID.
/*
* PLATFORM MODE
* To allow certain package ID and relevant API end-points to account for platform data
*/
public static int DASHBOARD_PLATFORM_MODE_PACKAGE_ID = ***;
Supporting APIs
Platform-Mode is only supported in api2.
Non-Package Level API
NOTE: For Platform-Mode to work, package_id has to be supplied.
user/ID/achievements.json (Return platform-wide achievements list)
user/ID/dashboard.json (Return platform-wide meta-data)
user/ID/projects.json (Return platform-wide joined projects list)
notifications.json (Return platform-wide notifications list)
notifications/unread.json ((Return platform-wide notifications unread count)
Package Level API
packages/ID/projects.json (Return platform-wide projects list)
Note:
The article's technical specifications and details are subject to potential changes based on our discretion. It is important to note that the information presented in the article might have become outdated or lost its relevance in the present context.
If you are interested to learn more about this, please drop an email to support@gametize.com with your queries regarding the article!
Please sign in to leave a comment.
Comments
0 comments