WeChat share button - javascript

I am trying to find out if it is possible to create a share button on a website that shares to WeChat.
So just as you would with Twitter or Facebook to share a message or link back to the social network.
Has anyone managed to do this? Or has anyone confirmed that it is not possible?
thanks!

You can use the AddThis service to embed a range of share buttons, including WeChat.
It doesn't seem to support opening the WeChat app with a pre-populated message (like when sharing to Twitter/Facebook) - probably because the WeChat app doesn't support this - but works around it in two ways:
On Desktop: clicking the share button displays a QR code which the user can scan using their mobile device
On Mobile: tapping the share button displays a share URL, a button to easily copy the URL, and another button to open the WeChat app. The user needs to still perform a couple of steps manually, but it's about the easiest it's gonna get.
Hope that helps.

They publish an APK for Android and iOS that allows you to do this from another native app.
As far as I'm aware, WeChat, like WhatsApp, does not support any web browser access so I don't think it's possible.
http://dev.wechat.com/wechatapi
Perhaps somewhere in the API you can create a share button on a website that opens the Android or iOS apps, but I don't think any WeChat access is possible from the desktop.

The answer in this SO question should help you WeChat sharing, how to change re-share description and thumbail?. It refers to a Javascript API WeixinJSBidge http://mp.weixin.qq.com/qa/index.php?qa=3163 with the documentation in Chinese but the code is still readable. Hope it helps you!

I have tried to implement the integration of WeChat on Meteor before. The questions are:
1. Did you have the correct package ID and signature?
2. Did you get approved from WeChat and get the WeChat App ID?
I follow the tutorials and get my app work here: http://blog.sanuker.com/?p=691
Hope it helps! Good luck.

Related

Opening a desktop shortcut on IOS (ipad) via JS

thanks in advance for any help.
I am wanting to know if anyone has tried or if it is possible to open a desktop shortcut on an ipad from within another app on the Ipad.
To elaborate I use an app called ServiceM8 of which I can use JS to create an add on. My addon is a webapp and I simply want to open the webapp. I can open it as a url in a new safari window however this doesn't allow me to hide the address bar.
By making the webapp a shortcut on the device I can remove that address bar which is much better for user experience and which is why I want to open the shortcut rather than have serviceM8 open it in safari.
I hope this makes sense and someone can shed some advice.
I have searched the forum and couldn't even find one case that related to the question I am asking.
A web app is essentially just a URL. It isn't a fully-fledged app and can't register a custom URL scheme. This means that it is not possible to launch it from another app or web site; the URL will just be handle directly by the default application that handles http(s) urls, which is Safari.

cordova app to start whatsapp

I did a few researches yet either the answer is outdated (cordova changed a lot since the answer) or in unanswered.
This is what i need:
I have a phone number on html page which is parte of a cordova app.
All that i need is to know how to send this number to whatsapp so either te user can add the number as contact and therefore be able to be prompted to send a message or simply open the message dialog.
Such behavior need to work on android and on ios too.
Any guidance is welcome.
I guess you are basically looking for sharing the data from your app to an other app (in this case whatsapp). I believe, social sharing plugin should help you out in this case which lets your share link, text and images to apps like facebook, whatsapp etc..
Please look at the official social sharing plugin link for more info. Hope it helps.

Can a Titanium app access the ios share features?

I want to let user's of my app share stuff by clicking on a share icon and bringing up the ios share page that pops up from the bottom of the screen and shows share options including message, mail, twitter, and facebook. I notice that apps, including the BBC News app have share icons that do this but I can't find anywhere that says how to do this with a Titanium app.
Is it possible? If so how?
I use this widget which brings up the native share sheet: https://github.com/ricardoalcocer/socialshare
You could try out this one: https://github.com/viezel/TiSocial.Framework
It works for iOS6, iOS7 and iOS8 as long as your app uses the Titanium SDK 3.4.0 or above.
It is also discussed here.
Or you could write your own module using this guide https://wiki.appcelerator.org/display/guides2/iOS+Module+Development+Guide

Save site as a mobile shortcut android

I spent a lot of time to search for solution but without result.
I check this topics :
Website Bookmark/ Shortcut Icon for Android Help. Cant get passed standard ribbon icon
Whick is very nice ,but here user must click on bookmark.That`s not what i need. May be button,or automatic script that prompt user for this and created automaticaly.For example something like this :
http://socialmedia.biz/2012/02/21/encourage-visitors-to-save-your-site-as-a-mobile-shortcut/
But it`s work only on Apple devices .. What im looking for is a similar solution for android.
Is this possible at all?
May be the only solution is to create simple app that act like a shortcut to my web page?
The page that is talking about has a mobile version ..
Have you looked here [for Chrome]? https://developers.google.com/chrome/mobile/docs/installtohomescreen
May be the only solution is to create simple app that act like a shortcut to my web page? The page that is talking about has a mobile version ..
If this is "allowed" and doesn't go against too many guidelines, this might be your only option. Basically you'd want to create a one Activity application and all it does is call the default Intent for your web page. This should push the user into the default Browser.
You could put the app in the Google Play store and link to it from the site or a script. I'd call the app something like "SITE_NAME Web Shortcut" and make it clear in the description that the only purpose is to launch the browser -- as previously mentioned this doesnt "feel" like something that should be in an app store, and if users think they're getting something extra you'll definitely get bad reviews.
(I'd also make the Activity with #style/Theme.Transparent)
Please be aware that Chrome has changed the way that installs web apps.
Here are the details: https://developers.google.com/web/updates/2018/06/a2hs-updates
There is an install criteria now:
The web app is not already installed
Meets a user engagement heuristic
Be served over HTTPS
Includes a Web App Manifest that includes:
short_name or name
icons - must include a 192px and a 512px icon
start_url
display - must be one of fullscreen, standalone, or minimal-ui
prefer_related_applications must not be present, or be false
-Registers a service worker with a fetch handler

market:// not supported, despite Android documentation

I'm implementing in-app purchase for an Android app from within a web view. The purchase is meant to be completed via Amazon's MP3 app. If the user does not have it installed, I want to open the Market app so they can download it before attempting to complete their purchase.
According to the official Android documentation, the following JavaScript should work:
window.location.href = 'market://details?id=com.amazon.mp3';
However, when I call that, I get a view that is blank except for a link to that link and half an upside-down Android dude poking out the top left of the view (you can't make this stuff up).
Anyone know why this might not be working? I've tested it on multiple handsets all running Android 2.1 and above. TIA for any help!
UPDATE: Thanks to #jtkendall on Twitter for this post that talks about how this behavior changed recently. Looks like this has to be implemented in native code.
Use the Http variant.
http://market.android.com/details?id=com.amazon.mp3
http://market.android.com/details?id=

Categories

Resources