Skip to content

Instantly share code, notes, and snippets.

View GillesVercammen's full-sized avatar

Gilles Vercammen GillesVercammen

  • Belgium
View GitHub Profile
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
# https://docs.fastlane.tools/actions
#
# Uncomment the line if you want fastlane to automatically update itself
# update_fastlane
_handleAppStateChange = appState => {
console.log('in appstatechange')
const { status, manualStop } = this.state
if (appState === 'active') {
this._updatePermissions('location', 'handle')
if (status === 'authorized' && !manualStop) {
console.log('[NOTE] app is in handleAppstate and authorized, starting tracking!!!')
BackgroundGeolocation.configure({
locationProvider: BackgroundGeolocation.RAW_PROVIDER,
interval: 10000,
@GillesVercammen
GillesVercammen / gist:aba915e6e53bd9abe5ba382f15c2742d
Created May 18, 2018 07:53
full backgroundgeolocation code
state = {
activeSlide: FIRSTITEM,
markerPlaceAble: false,
promptVisible: false,
placedMarkerCoords: {},
types: [],
status: '',
statusAlways: '',
alertShowed: false,
region: null,
_handleAppStateChange = appState => {
const { status, manualStop } = this.state
if (appState === 'active') {
this._updatePermissions('location', 'handle')
if (status === 'authorized' && !manualStop) {
console.log('[NOTE] app is in handleAppstate and authorized, starting tracking!!!')
BackgroundGeolocation.configure({
locationProvider: BackgroundGeolocation.RAW_PROVIDER,
interval: 20000,
fastestInterval: 5000,
import React, { Component } from 'react'
import {
AppRegistry,
StyleSheet,
Text,
View,
ScrollView,
Animated,
Image,
Dimensions,
package com.crescendo.sql.informat.controllers;
import com.crescendo.sql.informat.DTO.StudentHistoryDTO;
import com.crescendo.sql.informat.repositories.StudenthistoryRepository;
import com.crescendo.sql.utils.CustomErrorType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;