dcsan / WeChatCookbook

tips on making wechat apps
0 stars 0 forks source link

returning from /closing the browser view #3

Open dcsan opened 9 years ago

dcsan commented 9 years ago

After the user opens a URL to go to the browser, you can click the [X] to close the browser and go back.

but is there a way to do this from a link in the page? or from javascript? to open the chat view again?

is there a URL format / way to link to the main official account page?

what does the URL resolve to for a QRCode? is it a standard URL format or some special command that only WeChat client can read?

dcsan commented 9 years ago

SO crosspost http://stackoverflow.com/questions/32542473/how-to-link-to-an-official-account-from-the-built-in-browser

klbjlabs commented 9 years ago

I find we can use Wechat JS-SDK to do this. Import their JS-SDK file http://res.wx.qq.com/open/js/jweixin-1.0.0.js in project. And use wx.closeWindow(); image

klbjlabs commented 9 years ago

In a few days later, I will make a Demo