Open an App Page on Myket
Use the following URI to open an app's page on Myket. Replace APP_PACKAGE_NAME with the app's package name:
myket://details?id=APP_PACKAGE_NAME
This intent directs users to the app details page, for example, when you have published a new version.
Open the page and start downloading
To open the app page and start its download, use:
myket://download/APP_PACKAGE_NAME
Example
- Java
- Kotlin
- Unity
String url = "myket://details?id=ir.mservices.mybook";
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
startActivity(intent);
val url = "myket://details?id=ir.mservices.mybook"
val intent = Intent(Intent.ACTION_VIEW, Uri.parse(url))
startActivity(intent)
using UnityEngine;
public class MyketIntentExample : MonoBehaviour
{
public void OpenMyketAppPage()
{
#if UNITY_ANDROID && !UNITY_EDITOR
OpenMyketIntent("myket://details?id=ir.mservices.mybook");
#endif
}
private static void OpenMyketIntent(string url)
{
using (var intentClass = new AndroidJavaClass("android.content.Intent"))
using (var uriClass = new AndroidJavaClass("android.net.Uri"))
using (var uri = uriClass.CallStatic<AndroidJavaObject>("parse", url))
using (var intent = new AndroidJavaObject(
"android.content.Intent",
intentClass.GetStatic<string>("ACTION_VIEW"),
uri))
using (var unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"))
using (var activity = unityPlayer.GetStatic<AndroidJavaObject>("currentActivity"))
{
activity.Call("startActivity", intent);
}
}
}