Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to interpret the function of Mini Program to pull up APP

2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article is about how to interpret the function of Mini Program to pull up APP. The editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.

The other day, Uncle Hua was watching a movie at the cinema when he saw an update message from the official Mini Program saying "Mini Program supports opening mobile apps". Is it that good? So I went to study it. And then... I'm not so bloody. But so many official accounts say how powerful this function is, I really can't watch it any more. next, let's interpret this new feature that makes you sad and happy, which is not as powerful as you think.

First of all, let's take a look at what the officials say. The tweet of "Wechat Open course" is "blockbuster | Mini Program supports redirecting APP". However, after a close study of the development documents, it is found that there are great restrictions on this product.

One click: the user clicks on the Mini Program card shared by app, and he can return to the app by clicking a button.

Let me just talk about how this function is implemented, and then what are the limitations.

Implementation steps:

To achieve APP sharing Mini Program cards to Wechat

The prerequisite for this function is that you must bind APP and Mini Program to an open platform account (https://open.weixin.qq.com/) at the same time, and it is impossible for APP and Mini Program with different principals to bind to the same open platform account.

Tremble, man, don't try to get any APP to send any Mini Program card. Then use the corresponding SDK in APP to call up the sharing function. (https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&id=open1419317332&token=&lang=zh_CN)

Define a return button in the corresponding inner page of Mini Program

Define that the open-type value of this button component is set to launchApp, and then the user is required to actively click back. What does that mean? In other words, developers have no way to control the return at any time, but can only rely on users to click on their own initiative.

It is not difficult to say that it is difficult to achieve, but it is not easy to say, but there are great restrictions.

Let's see what the restrictions are:

This product can only jump between Mini Program and APP of the same subject.

The logic of sharing Mini Program cards by app limits that the product can only work between Mini Program and APP of the same subject, don't think about the Mini Program given to you by other people's APP, or your Mini Program to other people's APP.

After the shared Mini Program card is forwarded for the second time, the function of returning APP will be invalid.

It is only applicable to APP sharing, whether active initiator or passive visitor, visit and forward the shared Mini Program. At this time, the Mini Program page forwarded does not have a brand new feature.

However, long press "forward" on the Mini Program card in the chat box, as shown in the following figure

The Mini Program card forwarded in this way should still have the permission for this function.

You can only judge whether to pull APP, but not whether you need to download APP.

Although all the above conditions may be met, users who did not download the APP still reported an error and there is no fault-tolerant mechanism to guide the download.

The above is how to interpret the function of Mini Program to pull up APP. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report