You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Google Cloud Console will ask you to create a project before you can gain access to the APIs. Once you have created a project and a key is issued for an API, subsequent enabled APIs will be accessible using the same key which was issued for the first one. That means, the 4 APIs listed above can have one single key if falling under the same project, which exactly is the case with this app.
Setting up the API key
Now that we have got our precious key with all required APIs enabled, we can proceed by feeding this key to both Android and iOS.
For Android : Modify AndroidManifest.xml located at app/App_Resources/Android/src/main/AndroidManifest.xml and insert this between <application></application> tags.
For iOS: Add the following snippet at the top of main.js
import * as platform from 'platform'
if (platform.isIOS) {
GMSServices.provideAPIKey("PUT_API_KEY_HERE")
}
Usage
# Install dependencies
npm install
# Build for production
tns build <platform> --bundle
# Build, watch for changes and debug the application
tns debug <platform> --bundle
# Build, watch for changes and run the application
tns run <platform> --bundle
About
A working, cross platform, realtime location tracking mobile app made with NativeScript and Vue, under 350 lines of code.