Wechat Mini Program Login

0 views
Skip to first unread message

Bran Cardello

unread,
Aug 3, 2024, 6:02:59 PM8/3/24
to standisvami

Since WeChat Mini Program does not support standardized OAuth, it cannot redirect to the self-hosted Casdoor webpage for login. Therefore, the process of using Casdoor for WeChat Mini Program is different from that of regular programs.

This document will explain how to integrate Casdoor into WeChat Mini Program. You can find an example for this integration on GitHub here: casdoor-wechat-miniprogram-example.For more detailed information, please refer to the WeChat Mini Program login document.

WeChat Mini Program provides an API to internally log in and obtain the code. The code should then be sent to Casdoor.Casdoor will use this code to retrieve information (such as OpenID and SessionKey) from the WeChat server.

The above code includes the username and avatar URI of the WeChat Mini Program user during login. You can choose to pass these two parameters separately and then pass them to Casdoor after a successful login and obtaining the access token:

Currently, Casdoor is unable to bind existing accounts to WeChat Mini Program users. After Casdoor retrieves the OpenID from WeChat, it will either create a new user if the ID does not exist, or use the existing user if it does.

The most popular way is you can swipe down on WeChat to access a list of saved or recently used Mini Programs. According to Youzan, a WeChat shop platform, 27% of Mini Program traffic comes from this swipe down the interface.

Although the overall time user spends on WeChat is decreasing, WeChat Mini Program is still a promising channel, especially for verticals such as service and eCommerce. According to ALD analysis, WeChat Mini Program GMV has reached 2000 billion CNY (approx. 310 billion USD), increasing by 67% compared to 2019.

Over the last few months and weeks, the tide has been turning. Key Opinion Leaders such as Yu Xiaoge started to boast more than 1.5 million USD of monthly sales through their e-commerce mini-programs.

WeChat Mini-programs also might help target users with a specific purchasing power. Across all platforms, mini-programs users seem to be more likely of spending small amounts (below 200 RMB) and less likely to spend large amounts (above 1,000 RMB).

There seem however not to be any significant trends in terms of gender distribution: JD.com, Pinduoduo, Weipinhui, and Meituan all seem to have a relatively similar proportion of male and female users on their Native App and WeChat Mini-program.

In practice, 50% of the top WeChat Mini-programs also have a Native App. This is especially true in the E-commerce and Lifestyle services sectors, where more than 80% of top-100 WeChat mini-programs have a corresponding Native Application.

Age distribution of mini-program users also depends heavily on the type of mini-programs: business card/social WeChat Mini-programs (used mostly in professional contexts) have 28% of users above 40 years old (they are the largest user group).

However, most WeChat E-commerce Mini-program users (71%) are female. This trend is mostly due to the fact that E-commerce mini-programs are heavily promoted by public accounts and influencers in the fashion/cosmetics/childcare industry which has a majority of female followers.

The geographical distribution of WeChat Mini-program users is also getting more balanced over time. Although mini-program users used to be more concentrated in Tier 1 cities, the proportion of Tier 1 cities users dropped from 30% to 19% between Q4 2017 and Q2 2018.

WeChat mini-games also saw strong growth in engagement: from 3 minutes per session upon launch on January 2018, to 12.7 minutes per session in June 2018 (with a peak at 16.4 minutes per session in April, when several WeChat Mini-games got extremely viral)

The proportion of small orders on WeChat mini-programs has been increasing over time to 42% of orders between 200 and 1,000 RMB. This is due to the trend we mentioned of the increasing number of mini-program users in smaller cities.

Due to the large representation of smaller cities within mini-program users, average income is also relatively low: only 7.4% of WeChat mini-program users earn more than 10,000 RMB per month. 58.9% of them earn less than 5,000 RMB per month.

I need to implement a wechat mini-program which is expected to be nearly exact replica of an already deployed PWA. Is there a way I can use same codebase in wechat mini-program Or implement some kind of a bridge to achieve same.PS: PWA was implemented using Ionic/Angular.

Yes, in theory you simply add the WeChat JS SDK to your current application, then use the APIs provided to you to do what you require. You'll need a registered WeChat account so that you can get your tokens and secrets, otherwise you won't be able to call their API. If your account is an international rather than a mainland China account then you may have limitation on certain API, such as the WeChat store API (from what I remember.)

I have been trying to setup it for wechat mini app but some how not able to get exact document to integrate service or I am missing something somewhere.I have been following this document link. -ability/message-push.html#option-url

I suppose that you want to send messages to mini program user ,not receive messages from wechat server. The first link you give describes how to receive messages from wechat server. so it is not what you want.you provide the address and token to wechat server,and they can use the token to sign the request and you can verify the requsest if it is from wechat server.so the token you provide can be any valid string.you don't need to get it from somewhere

Scan the QR code of the Mini Program and use the Mini Program "Small Login" for authentication. Using "Small Login" will increase the registration conversion rate by 80% and save 100% of the cost of SMS.

Mini Program Scan Code Login refers to the use of Authing's official mini program "Small Login" to perform scan code login. JavaScript SDK can be used for quick access. In addition, we also provide [HTTP interface](./#tiao-yong- http-api-jie-ru-xiao-cheng-xu-sao-ma-ren-zheng).

Without installation or downloading any extra apps, users can simply swipe down on the WeChat interface to choose from a list of WeChat mini-programs and after registering, users can enjoy the functions and services offered instantly.

Currently, thousands of mini-programs have already been deployed covering a variety of industries and functions, used to expand business, share knowledge and for social interaction to name a few. WeChat mini-programs have enabled users to have access to a large amount of applications or services without leaving WeChat. Many companies have deployed WeChat mini-programs as a cost-effective method to promote online business and services. For example, Mobike, the largest shared-bike company in China, launched its WeChat mini-program to allow users to unlock or top-up their accounts in an easy way.

E-commerce is increasingly prevalent in WeChat mini-programs and has become one of the dominant functions. Examples of WeChat e-commerce mini-programs can be seen from almost all the large e-commerce companies in China, such as Taobao, Tmall, Pinduoduo and JD.com, which have developed exclusive WeChat mini-programs enabling customers to have an easier and immersive shopping experience.

For instance, Pinduoduo has developed its WeChat mini-program using the concept of social selling. It deployed two buttons on the interface with different colors that allow customers to choose what kind of buying method they would like to use, including group buy and individual buy.

At present, the mini-program market size still maintains a rapid growth trend with over 200 million registered users accessing WeChat mini-programs on a daily basis. WeChat mini-programs have become one of the easiest ways to do almost everything in China, covering a vast range of services and needs for the thousands of WeChat daily users.

There are several aspects to measure the performance of your WeChat mini-program. One of the prevalent ways is to measure the number of engaged followers. If your WeChat mini-program has thousands of followers, these followers will bring your company traffic, this traffic will then convert to the revenue of your business.

Another metric to assess the performance of your WeChat mini-program is in the unsubscribe rate of the mini-program. A successfully maintained WeChat mini-program will have a low unsubscribe rate, which means that customers are more likely to engage with campaigns or promotions in your WeChat mini-program. This will significantly influence the success of the conversion of your WeChat mini-programs.

While preparing for my presentation at the Google Developer Days 2019 in Shanghai, China I was reminded again that China is a market where few super apps like WeChat host a gazillion mini apps or mini programs that fulfill everyday needs like booking cabs, reserving tables, etc.

I got curious and downloaded the SDK and after playing a bit with the Your First Mini App tutorial, I realized the whole thing is so close to building for the actual web, it both fascinates, intrigues, and honestly somewhat infuriates me.

Overall a really nice separation of concerns. I could very well imagine being productive with this in no time. The onboarding experience of the documentation is pretty neat. The SDK is well made with (essentially an adapted) Chrome DevTools integrated and some VS Code like features like code completion.

Finally there is a local web server running that allows them to link from the online docs to local URLs like 127.0.0.1:32123/minicode/VBZ3Jim26zYu, which in turn allows them to open code samples from the docs that are ready to play with a click in WeChat DevTools. The web server luckily only runs when the WeChat DevTools are open.

In order to provide you with the best understanding of how WeChat is designed with your privacy in mind and to better understand your rights regarding your data, WeChat requires that you first review the following important information, consent to the latest version of our WeChat Privacy Policy, and provide additional required info about yourself.

c80f0f1006
Reply all
Reply to author
Forward
0 new messages