Skip to content
This repository has been archived by the owner on Apr 8, 2021. It is now read-only.

WhatsApp integration? #65

Closed
caspahouzer opened this issue Nov 22, 2013 · 10 comments
Closed

WhatsApp integration? #65

caspahouzer opened this issue Nov 22, 2013 · 10 comments

Comments

@caspahouzer
Copy link

No description provided.

@timanrebel
Copy link
Contributor

You could do that with a custom activity and a callback that opens the url scheme of WhatsApp (whatsapp://) right?

@FokkeZB
Copy link
Contributor

FokkeZB commented Nov 22, 2013

But not send an image unfortunately :(

Very strange there is no http://www.sharesdk.com/uiactivities for it.

@roopeshnema
Copy link

I have tried custom Activity for WhatsApp, and able to send the text, but the only issue is icon is not coming.

if (Social.isActivityViewSupported()) {// iOS6 and later
Social.activityView({
text : text,
url : params['EXTRA_URL'],
removeIcons:"print,sms,copy,contact,camera"
},[

            {
                title:"WhatsApp",
                type:"open.whatsapp",
                image: "/images/whatsapp.png",
                callback: function(e) {
                    Ti.Platform.openURL("whatsapp://send?text=" + text);
                },

            }
        ]
    );
}

Here "/images/whatsapp.png" icon is not showing also it is coming down the line.
Any suggestion plz.

issue_2

@FokkeZB
Copy link
Contributor

FokkeZB commented Apr 7, 2014

Works fine for me, but I do have images/.. instead of /images/...

@kopiro
Copy link

kopiro commented Apr 11, 2014

The icon must be 60x60, is positioned in a rounded gray square, and, in addition, a gray overlay is applied.

Watch here the UI Guidelines: https://developer.apple.com/library/ios/documentation/userexperience/conceptual/mobilehig/ContentViews.html

  • Use black or white with appropriate alpha transparency.
  • Don’t include a drop shadow.
  • Use antialiasing.

Something like this :/
whatsapp 2x

@FokkeZB
Copy link
Contributor

FokkeZB commented Apr 11, 2014

There you are:

whatsapp-ios7-iphone
whatsapp-ios6-iphone
whatsapp-ios7-iphone 2x
whatsapp-ios6-iphone 2x

@roopeshnema
Copy link

Thank a lot Kopiro and FokkeZB for help :-), now icon is showing properly.
one small question "Can't we use colored whatsapp icon like FB TI or Mail from above image ? "

@FokkeZB
Copy link
Contributor

FokkeZB commented Apr 18, 2014

Nope, you can't... those are managed by iOS.

@roopeshnema
Copy link

Ok Thank you sir

@roopeshnema
Copy link

one small question, though it is not related to whatsapp, earlier version ( < 1.7) of module, used to display a popup when user wil try to share in FB or TI but FB or TI accounts are not added in the settings, but with the latest version that popup is not coming so is there any way to enable it back.

also when FB app is installed on mobile but no account is not added in settings, in this case also FB icon is not displaying in the window, so is it mandatory that account should be added in the settings irrespective of app is installed?

#84

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants