Cancellation of "Social Sharing" in cordova clicked through its own shared sheet?
Using the cordova native share like this:
module.controller('MyCtrl', function($scope, $cordovaSocialSharing) {
$scope.share = function() {
$cordovaSocialSharing
.share(message, subject, file, link) // Share via native share sheet
.then(function(result) {
// Success!
}, function(err) {
// An error occured. Show a message to the user
});
}
});
from html template using ng-click directive to call the function.
<div ng-controller="MyCtrl">
<div ng-click="share()"></div>
</div>
How do I know if a user has clicked the Cancel button on a shared page?
I tried looking at the result, but it was always setting to true.
Thank!
+3
source to share
No one has answered this question yet
Check out similar questions: