diff --git a/app/assets/javascripts/discourse/lib/pwa-utils.js.es6 b/app/assets/javascripts/discourse/lib/pwa-utils.js.es6 index 0cbc621bbd5..c1833da32b6 100644 --- a/app/assets/javascripts/discourse/lib/pwa-utils.js.es6 +++ b/app/assets/javascripts/discourse/lib/pwa-utils.js.es6 @@ -1,5 +1,10 @@ export function nativeShare(data) { + const caps = Discourse.__container__.lookup("capabilities:main"); return new Ember.RSVP.Promise((resolve, reject) => { + if (!(caps.isIOS || caps.isAndroid || caps.isWinphone)) { + reject(); + return; + } if ( window.location.protocol === "https:" && typeof window.navigator.share !== "undefined"