0
Ich benutze 3D Touch Native Plugin in Ionic 3 App 3d-touch.3D Touch Ionic 3: Wie öffne ich die Seite
Wie kann ich die Seite öffnen, nachdem die Anwendung über das 3D Touch Menu geöffnet wurde? In
app.component.ts
mein Code:
this.platform.ready().then(() => {
//3d Touch
this.threeDeeTouch.isAvailable().then((isAvailable) => {
if(isAvailable == true) {
let actions: Array<ThreeDeeTouchQuickAction> = [
{
type: 'projects',
title: 'Projects',
iconType: 'Bookmark'
},
{
type: 'messages',
title: 'Messages',
iconType: 'Message'
},
];
this.threeDeeTouch.configureQuickActions(actions);
this.threeDeeTouch.onHomeIconPressed().subscribe((payload) => {
alert(payload.type) ;
//!!!!OPEN PAGE!!!!
}) ;
}
});
}) ;