I used https://ionicframework.com/docs/native/social-sharing/ for my app. Here is my code
home.html
<ion-content padding>
<button ion-button (click)="share()">Share</button>
</ion-content>
home.ts
import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';
import { SocialSharing } from '@ionic-native/social-sharing';
@Component({
selector: 'page-home',
templateUrl: 'home.html'
})
export class HomePage {
constructor(public navCtrl: NavController,
public socialSharing: SocialSharing, ) {
}
share() {
this.socialSharing.shareWithOptions({
message: "baseLink",
url: 'https://google.com'
})
}
}
I try share with Skype but have bug in here:
- Click share and chose Skype -> share ok
- Click home to skype open in background and comback Ionic app
- Click share and chose Skype again --> Not show list contact to share
How I can fix it?