@meta0102 wrote:
Hi,
maybe someone can help me.If i try to push a page to the navigation stack in my app.component within a nfc listener subscribe the new page is visible but not responding (unable to click, switch input,…)
If i push the outside the nfc listener all works fine
Simple project
Code
app.component.ts
if (this.platform.is(‘cordova’)) {
this.nfc.addNdefListener(() => {
console.log(‘successfully attached ndef listener’);
}, (err) => {
console.log(‘error attaching ndef listener’, err);
}).subscribe(event => {
this.nav.push(TestpagePage).then(res => {
console.log(‘ok’)
console.log(res)
}).catch(e => {
console.log(‘error’)
console.log(e)
})
});
}Ionic info
cli packages:@ionic/cli-utils : 1.19.1 ionic (Ionic CLI) : 3.19.1
global packages:
cordova (Cordova CLI) : 7.0.1
local packages:
@ionic/app-scripts : 3.1.8 Cordova Platforms : android 6.2.3 Ionic Framework : ionic-angular 3.9.2
System:
Android SDK Tools : 26.1.1 Node : v6.11.2 npm : 5.6.0 OS : Windows 10
Misc:
backend : legacy
Thanks
Posts: 1
Participants: 1