-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot read property \'getApplicationContext\' of undefined' #249
Comments
That's usually a symptom of invoking the plugin too early. Can you wait until after the app has fully started? |
thanks for response! i add this two solution for delay starting functionality, first i add a
this code is available here |
@EddyVerbruggen do you have some solution for this ? |
Hi, Try downgrading to version 3.4.2 EDIT : I have tried downgrading and it worked for me ! |
@MarioCat which version of nativescript you have ? Because i have |
@jakubstankowski I also have 7.0.9 |
Same Error with below environments:
Solved by building and deploy with Apk |
The error only happen on Preview. After build and install the apk (android) on mobile and works fine |
Hi,
when i want start my vue-nativescript aplication i get error
Cannot read property \'getApplicationContext\' of undefined'
i use this version native script:
"@nativescript/core": "^7.0.3",
and this nativescript-barcodescanner -
"nativescript-barcodescanner": "^4.0.1"
,there is my code: https://codesandbox.io/s/nativescript-vue-web-template-forked-iyjci
every logic is available in main.js, and in components > App.vue
I used Android 7 +
thanks for help!
The text was updated successfully, but these errors were encountered: