Home  >  Article  >  Backend Development  >  javascript - How to share to Moments on the H5 page embedded in the App?

javascript - How to share to Moments on the H5 page embedded in the App?

WBOY
WBOYOriginal
2016-09-30 09:37:291480browse

Integrate an H5 webpage into an APP.
There is a button on this H5 webpage.
How can I make this button shareable?

PS:
You can share it to Moments or QQ or friends’ Weibo.
The content to be shared can be pictures or links.
But there must be a callback function, because it must be judged based on whether the sharing is successful.

Reply content:

Integrate an H5 webpage into an APP.
There is a button on this H5 webpage.
How can I make this button shareable?

PS:
You can share it to Moments or QQ or friends’ Weibo.
The content to be shared can be pictures or links.
But there must be a callback function, because it must be judged based on whether the sharing is successful.

Both Android and IOS support the concept of jsbridge, which is the communication interface between local applications and web pages, bridge mode.
Everyone who has played with WeChat official accounts knows that when WeChat opens a page, there is a menu bar in the upper right corner. Sharing operations, he provides interfaces for these sharing operations for developers to use. Your approach is no different from his approach

The WeChat open platform WeChat sharing service cannot solve your needs?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn