Я не могу поделиться с Facebook @ionic-native/social-sharing
.Вот мой .ts
файл.
import { Component } from '@angular/core';
import { SocialSharing } from '@ionic-native/social-sharing';
@Component({
selector: 'page-home',
templateUrl: 'home.html'
})
export class HomePage {
img: String = 'https://static.guim.co.uk/sys-images/Guardian/Pix/pictures/2011/1/12/1294859657274/Earth-007.jpg'
result: any
reason: any
constructor(public sharing: SocialSharing) { }
fb() {
this.sharing.shareViaFacebook(msg, img, url)
.then((result: any) => {
this.result = result
})
.catch((reason: any) => {
this.reason = reason
})
}
}
Когда выполняется функция fb()
, она попадает в catch
с этим reason
:
[
"com.android.bluetooth",
"com.android.nfc",
"com.google.android.apps.docs",
"com.google.android.apps.docs",
"com.google.android.apps.messaging",
"com.google.android.apps.translate",
"com.google.android.gm",
"com.google.android.talk",
"com.verizon.messaging.vzmsgs",
"com.estmob.android.sendanywhere",
"com.facebook.orca",
"com.skype.raider",
"nextapp.fx"
]
Обмен по электронной почте работает какожидается.Совместное использование через Twitter также не работает - с этим reason
:
[
"com.amazon.kindle",
"com.android.bluetooth",
"com.android.nfc",
"com.google.android.apps.docs",
"com.google.android.apps.maps",
"com.google.android.apps.messaging",
"com.google.android.apps.photos",
"com.google.android.gm",
"com.google.android.talk",
"com.vcast.mediamanager",
"com.vcast.mediamanager",
"com.verizon.messaging.vzmsgs",
"com.estmob.android.sendanywhere",
"com.facebook.orca",
"com.google.android.street",
"com.skype.raider",
"nextapp.fx"
]