Unity opens Taobao app and jumps to the product page

Time:2021-10-20

Recently, I came across a need to have a button in unity, open it and directly jump to Taobao app to open the product page. Baidu has no relevant articles, so I share it here.

When developing games before, I wanted to guide players to the app store to update games. The previous method was also unity’s application. OpenURL interface, which can not only jump to the browser, but also jump to the application and pass parameters.

Open the Android App store,? Id = XXX (XXX is your APK package name)


Application.OpenURL("market://details?id=com.egogame.picoadventure");

Open the app store, / / followed by the page address of your app


Application.OpenURL("itms-apps://itunes.apple.com/us/app/picos-adventure/id972438138?l=zh&ls=1&mt=8");

Open Taobao: taobao://item.taobao.com/item.htm?id= Commodity ID


Application.OpenURL("taobao://item.taobao.com/item.htm?id=617680573544");

Open tmall: taobao://detail.tmall.com/item.htm?id= Commodity ID


Application.OpenURL("taobao://detail.tmall.com/item.htm?id=647523686854");

Open Taobao store: Taobao: / / Taobao store website


Application.OpenURL("taobao://shop491221397.taobao.com");

infer other things from one fact:

Knowing such a rule, knowing anything you need, you know what to do. Suppose you want to turn on Alipay to open the health code now? If you want to open Jingdong app to jump to product details, you can do it.

The premise is to know the app URL scheme and parameter format. These can be found in Baidu or the app official website. The keyword is so and so app URL scheme.

For example, if we want to open the ant forest, Baidu search Alipay URL scheme, find the corresponding URL scheme, call the interface can jump.


Application.OpenURL("alipays://platformapi/startapp?appId=60000002");

summary

This is the end of this article about the function of unity opening Taobao app and jumping to the product page. For more information about unity opening Taobao app and jumping to the product content, please search the previous articles of developeppaer or continue to browse the relevant articles below. I hope you will support developeppaer in the future!

Recommended Today

SQL exercise 20 – Modeling & Reporting

This blog is used to review and sort out the common topic modeling architecture, analysis oriented architecture and integration topic reports in data warehouse. I have uploaded these reports to GitHub. If you are interested, you can have a lookAddress:https://github.com/nino-laiqiu/TiTanI recorded a relatively complete development process in my hexo blog deployed on GitHub. You can […]