Date | Package File (.unitypackage) | Demo Project |
---|---|---|
06/18/2021 | v2021.2 | v2021.2 (Unity 2020.3.9) |
02/10/2021 | v2021.1 | v2021.1 |
MADConnect SDK enables interconnection between you (as a developer) and your target users who download your apps from MAD Store.
With this SDK, you will be able to
*This SDK is applicable to both MAD Gaze GLOW and MAD Gaze GLOW Plus model.
The application shall be
Tested Unity Editor Versions
The target user will need to install and login on MAD Gaze Connector.
Developers need to generate an API Key from Developer Console in order to be granted access to App Purchase Status and Unique User ID specifically for your app.
Once integrating this feature into your app, your app will communicate with MAD Gaze Connector in the background to obtain the required information.
Your app will not connect to MAD Gaze server directly, but MAD Gaze Connector instead.
Your APK must be uploaded to Developer Console/Build first in order to obtain an API Key, i.e. you will need to confirm your application package name before uploading and testing your application for these features.
To obtain an API Key, you can go to Developer Console/Connect and press Generate API Key button after you have uploaded at least a build to the system.
Select MAD Gaze from the Unity menu.
Select Change API Key from the expanded menu.
Enter the API Key obtained from last section to the text input field on the Inspector window.
This API allows developer to obtain a unique identifier for the logged-in user on MAD Gaze Connector app.
MadConnect.Instance.requestMadId(
(id)=>{
//Successfully retrieve, ID shown above represents the current logged-in user.
},
(error) =>{
//Check Error Table as below.
}
);
Error | Description |
---|---|
ERROR_NO_CONNECTOR_INSTALLED | MAD Gaze Connector is not installed on target user's phone. |
ERROR_INVALID_DEVELOPER_CONFIG | Package Name or API Key might be wrong. |
ERROR_NO_LOGIN | User is not logged-in on MAD Gaze Connector. |
ERROR_NO_NETWORK | No reachable network available. |
ERROR_UNKNOWN | Unknown errors. |
This API allows developer to check if the logged-in user has/has not purchased your application.
MadConnect.Instance.requestAppPurchaseStatus(
(purchased, id)=>{
if (purchased)
//This user has purchased or subscribed to your application.
} else {
//This user has not purchased or subscribed to your application.
}
},
(error) =>{
//Check Error Table as below.
}
);
Error | Description |
---|---|
ERROR_NO_CONNECTOR_INSTALLED | MAD Gaze Connector is not installed on target user's phone. |
ERROR_INVALID_DEVELOPER_CONFIG | Package Name or API Key might be wrong. |
ERROR_NO_LOGIN | User is not logged-in on MAD Gaze Connector. |
ERROR_NO_NETWORK | No reachable network available. |
ERROR_UNKNOWN | Unknown errors. |
You can check DeviceControlDemo in MADGaze/Demo/Scenes.
Q: What user information will be exposed to the developers?
Developers can obtain a User ID which is a Unique ID that represents the current user, and the app purchase records but limited to the records that belongs to the app owner.
There is no other user information such as email address, phone number, names or other sensitive information that will be exposed to the developers.
Q: My application is a free app. Can I check if the user has ever downloaded my app?
Currently we don't have any APIs to serve this purpose.
Q: I have uploaded an app with incorrect package name. What should I do?
Package name is extracted from the APK file once you have uploaded your first build (APK file). The package name cannot be modified manually. You have to create another application and upload the valid build instead.
You can remove the applications that have never been submitted for review or published to MAD Store.
This library is licensed under the MAD Gaze - Terms of Use.