Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

airship-location-cordova

Package Overview
Dependencies
Maintainers
4
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

airship-location-cordova

Cordova plugin to install the Airship location module

  • 12.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

airship-location-cordova

A Cordova plugin that automatically links the Airship Location modules in iOS and Android.

Resources:

  • Cordova getting started guide
  • JSDocs

Installation

	cordova plugin add https://github.com/urbanairship/airship-location-cordova

Contributing Code

We accept pull requests! If you would like to submit a pull request, please fill out and submit our Contributor License Agreement.

One of our engineers will verify receipt of the agreement before approving your pull request.

Issues

Please visit http://support.urbanairship.com/ for any issues integrating or using this plugin.

Requirements:

  • cordova >= 9.0.1
  • cordova-ios >= 6.1.0
  • cordova-android >= 9.0.0
  • cococapods >= 1.7.3
  • urbanairship-cordova plugin >= 8.0.0

Quickstart

  1. Install this plugin using Cordova CLI:

     cordova plugin add https://github.com/urbanairship/airship-location-cordova
    
  2. (iOS only) Add required location authorization strings to your iOS project's info.plist:

     <key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
     <string>Always and when in use location usage description</string>
     <key>NSLocationAlwaysUsageDescription</key>
     <string>Always location usage description</string>
     <key>NSLocationWhenInUseUsageDescription</key>
     <string>When in use location usage description</string>
    
  3. Enable location:

     // Enable location (will prompt the user to accept location on iOS)
     AirshipLocation.setLocationEnabled(true, function (enabled) {
         console.log("Location is enabled!")
     })
    

FAQs

Package last updated on 30 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc