I am developing a plugin for NativeScript using the recommended nativescript-plugin-seed available at this link. In my plugin, I require access to the Google Location service, but I am facing issues with accessing it.
In order to implement the required dependencies, I have added the following code in my include.gradle file within the android folder:
dependencies {
implementation "com.google.android.gms:play-services-location:17.0.0"
}
Upon attempting to utilize the service in myApp.android.ts as shown below:
let client = com.google.android.gms.location.LocationServices;
I always receive an error stating that the property 'gms' does not exist on 'typeof android', and I am unsure about what could be missing from my setup.