nativescript-angular
nativescript-angular copied to clipboard
Paremeter transfer when starting the app
Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
- CLI: 7.0.10
- Angular: 10
Describe the bug When I start my app I would like to send a parameter that my app was started either via NFC or just by clicking on the app. I tried to do this by sending an intent (Per TaskerIntent Plugin) and reading it out via the broadcast receiver in the ngOnInit method of my component. Unfortunately this does not work, I never get into my reveiver. I sent the intent to the NativeScriptActivity with the action android.intent.action.MAIN. Generally my question is is this the right way or am I completely wrong?