Open radarsu opened 3 years ago
@radarsu what Android Studio version do you have installed, and can you see what gradle version is installed? Guess also good to collect node/npm version while we can.
Also would it be possible to post that project on github and share a link; we could take a look to see if something jumps out?
General info
Device: Xiaomi Redmi 5 package.json:
Problem
I've created fresh project following exact steps from: https://capacitor.nativescript.org/installation.html (except: I've generated blank application instead of tabs). Everything went flawlessly except native functions aren't getting called. I've been cleaning project and Android Studio, updating nativescript and capacitor dependencies and also playing around with gradle version, but in the end that didn't affect anything. I've followed guide twice ensuring calling
npm i @nativescript/capacitor
afternpx cap add android
.home.page.ts
After activating action:![image](https://user-images.githubusercontent.com/7216948/125038950-4444ae00-e096-11eb-8750-2bc0863802b4.png)
There are a lot of events sent to NativeScriptCap.notify when I activate that function, but even simplest native.isAndroid returns undefined, brightness isn't changed and modal isn't opening. Code for brightness and modal are copy-pasted from documentation and imported in
nativescript/index.ts
.