Chicken Soup of the Day: Pessimists Might Be Right, But Optimists Often Succeed
Assuming you are a user, you can find these functions in any small program
- forward to a friend
- Share to circle of friends
- copy Link
Very common functions, but if you are a developer, these functions need to be done by yourself, and they are not available after your project is built.
1. [Forward to friends] Use the method onShareAppMessage
This method has a pitfall, that is, each page has to be written separately. I haven’t found a way to write a copy for the entire project, and all pages can be shared [Maybe I didn’t find it? I will update this article when I find it]
So if you use a small program and find that its [Forward to Friend] button is gray and cannot be clicked, it means that the developer of this small program did not write this part of the code.
2. [Share to Moments] Use the onShareTimeline method
3. [Copy link] Note that this function does not require developers to manually write methods, but! If the [Forward to Friend] function is grayed out and unavailable, [Copy Link] will also be unavailable, please see . In short, if you want to copy the link, you must first activate [Forward to a friend].