In my NativeScript app I need to get additional geolocation info like satellite count or satellite ids which isn't provided by nativescript-geolocation plugin.
I am trying to use GnssStatus class from android.location in NativeScript app with the following:
const gnssCb = new android.location.GnssStatus.Callback();
After that I get an error:
ERROR Error: JNI Exception occurred (SIGABRT)
What am I doing wrong? Or is there any alternative way I can get that info?
android.location.GnssStatus.Callback
is a class inherited from Object, so you may have to extend it to override the methods. I tested below code with Playground, it executes as expected.