Code Monkey home page Code Monkey logo

ti.geo.background's Introduction

Ti.Geo.Background

The goal of Ti.Geo.Background is to make performing background geo location easy. By combining both time (ping) and distance filters Ti.Geo.Background ensures a consistent stream of coordinates accounting for a majority of usage scenarios.

Before you start

iOS Before starting with iOS you need to make sure that the UIBackgroundMode for location has been added to your tiapp.xml. Below shows the snippet that needs to be added into your configuration node.

    <key>UIBackgroundModes</key>
    <array>
        <string>location</string>
    </array> 

Android Before starting with Android you need to make sure that the following service is added to your tiapp.xml. Below shows a snippet demonstrating the service record that is needed.

	<android xmlns:android="http://schemas.android.com/apk/res/android">
        <manifest android:installLocation="auto">
            <supports-screens android:anyDensity="false"
                android:largeScreens="true" android:normalScreens="true" android:smallScreens="false"/>
        </manifest>		
	    <services>
	        <service url="bGeo/Ti.Geo.Timer.js" type="interval"/>
	    </services>
	</android>

How To Example

The aim of Ti.Geo.Background is to simply collect coordinates in the background. Because of this, testing on your device is highly recommended. For an example demonstrating how to use Ti.Geo.Background and all of it's configurations please review the included app.js file.

Licensing & Support

This project is licensed under the OSI approved Apache Public License (version 2). For details please see the license associated with each project.

Developed by Ben Bahrenburg available on twitter @benCoding

Learn More

Twitter

Please consider following the @benCoding Twitter for updates and more about Titanium.

Blog

For module updates, Titanium tutorials and more please check out my blog at benCoding.Com.

ti.geo.background's People

Contributors

benbahrenburg avatar

Watchers

Navid Nikpour avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.