Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shareWithOptions trigger an unknow "JSON Error" #808

Closed
Segfaultd opened this issue Apr 12, 2017 · 0 comments
Closed

shareWithOptions trigger an unknow "JSON Error" #808

Segfaultd opened this issue Apr 12, 2017 · 0 comments

Comments

@Segfaultd
Copy link

Using default shareWithOptions code :

var options = {
		message: 'share this', // not supported on some apps (Facebook, Instagram)
		subject: 'the subject', // fi. for email
		files: ['', ''], // an array of filenames either locally or remotely
		url: 'https://www.website.com/foo/#bar?a=b',
		chooserTitle: 'Pick an app' // Android only, you can override the default share sheet title
	};

	$scope.share = function(){
		window.plugins.socialsharing.shareWithOptions($scope.options, function(result){
			console.log(result);
		}, function(error){
			console.log(error);
		});
	};

Nothing will trigger and console will say "JSON error", i've tried reducing the options to just a message/just a subject and nothing, it's the same :(

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

No branches or pull requests

1 participant