GithubHelp home page GithubHelp logo

essamtarik / locationlistener Goto Github PK

View Code? Open in Web Editor NEW
9.0 3.0 1.0 134 KB

Home Page: https://medium.com/@essamtarik2000/introduction-to-react-natives-headless-js-90e87dee0ab4

JavaScript 16.35% Python 15.52% Java 28.66% Objective-C 39.47%
react-native react android

locationlistener's Introduction

Location listener using React Native's headless JS

locationlistener's People

Contributors

essamtarik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

hulkilyas

locationlistener's Issues

LocationListener keeps stopping

My App is built successfully but when Starting the app it keeps stopping in android. My all code is same as yours except some version difference:

Package.json:

{
"name": "Chutiyapa",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"react": "16.3.1",
"react-native": "0.55.4"
},
"devDependencies": {
"babel-jest": "23.6.0",
"babel-preset-react-native": "4.0.1",
"jest": "23.6.0",
"react-test-renderer": "16.3.1"
},
"jest": {
"preset": "react-native"
}
}

My android/app/build.gradle:
compileSdkVersion 23
buildToolsVersion "23.0.1"
useLibrary 'org.apache.http.legacy'

defaultConfig {
    applicationId "LocationListener"
    minSdkVersion 16
    targetSdkVersion 26
    versionCode 1
    versionName "1.00"
    ndk {
        abiFilters "armeabi-v7a", "x86"
    }
}

except this all other things are same

Not logging to console while in background

Hi Essam, thanks for the code, i run the code on my local machine using an emulator (Google Nexus 5), and i run react-native log-android command on my console to view the output. It is logging well when i change the location GPS, but it didnt work when i press the home button to put the app on the background. Do i miss out on anything here? Thanks again

Background location stops

I tried to minimize the app and it stops working after some time , if I want to track location continuously what should I do?

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.