viezel/TiSocial.Framework

ipad popover doesn't work

Opened this issue · 1 comments

Hey,

I am using the latest version 1.7.8
in the simulator(i don't own an ipad) when i press the share button the popover doesn't show up.
I tried it on both Titanium version 3.4.0 and 3.5.0
below is a code snippet

if (Ti.Platform.osname === 'ipad') {
            /**
             * this is specific for ipad as the share button should be used as a popover
             */
            if (Social.isActivityViewSupported()) {
                activityBtn.addEventListener('click', function() {
                    Social.activityPopover({
                        text : "text to share",
                        emailIsHTML : false,
                        view : activityBtn
                    });
                });
                toolbar.add(activityBtn);
            }
        } else {
            /**
             * this is specific to ios as the share button should be an activity view
             */
            if (Social.isActivityViewSupported()) {//min iOS6 required
                activityBtn.addEventListener('click', function() {
                    Social.activityView({
                        text : "text to share",
                        emailIsHTML : false
                    });
                });
                toolbar.add(activityBtn);
            }
        }

and there is another issue which if necessary i will open a new ticket for it, on iphone if i select the viber app(already installed on the phone) and then i select the contact to share with the text with nothing gets shared, if it is necessary i will open a new separate issue for this

COOL :)