Forum Discussion
Anonymous
5 years agoLinking To An App's Store Page Review Tab
Hi all. So recently the oculus store app page has been re-designed. It used to be an all-in-one type page. If you'd like to send the user to your review page you simply sent the user to your app page ...
btelman
5 years agoExplorer
Looks like a recent update broke this flow (On Quest). This is the updated method that should do the same thing. Given that the old way was not officially supported, this may break later on as well. This has not been tested for Oculus Go. Still does not open the review area directly though.
public static void OpenOculusStorePDPAndroid(string targetAppID)
{
AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer");
AndroidJavaObject currentActivity = unityPlayer.GetStatic<AndroidJavaObject>("currentActivity");
AndroidJavaObject packageManager = currentActivity.Call<AndroidJavaObject>("getPackageManager");
AndroidJavaObject i = packageManager.Call<AndroidJavaObject>("getLaunchIntentForPackage", "com.oculus.vrshell");
i.Call<AndroidJavaObject>("setClassName", "com.oculus.vrshell", "com.oculus.vrshell.MainActivity");
i.Call<AndroidJavaObject>("setAction", "android.intent.action.VIEW");
i.Call<AndroidJavaObject>("putExtra", "uri", "/item/" + targetAppID);
i.Call<AndroidJavaObject>("putExtra", "intent_data", "systemux://store");
currentActivity.Call("startActivity", i);
}
domkonecny
2 years agoExplorer
This works for me, thank you !
- manvith244 months agoHonored Guest
Did the solution that worked for you include navigating to app's store page review tab from Unity App?
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 3 days ago
- 2 months ago