Open Sitallcom opened 2 weeks ago
url: 'http://my.server.com',
Why are you providing an url to the plugin and performing your own http requests?
I removed this but it didn't solve it
Are you testing this while sitting at your desk or going outside to move at least 200 meters?
read the wiki here “Philosophy of Operation”.
During my tests I walked out of my office walk for some Kms. One time one of my coworkers went home like (12kms) with the app in background and it didn't communicated
also see wiki “Debugging” and learn to fetch the plug-ins incredibly verbose logs via method .emailLog (see API docs for more information).
debug: false,
The first thing you do when something unusual happens is set that to true
so you can hear the plug-in operating.
How should I send my current location while on background?
interface LocationContextType { currentLocation: Location | undefined; }
interface LocationContextProps { children: React.ReactNode; }
export const LocationContext = createContext({} as LocationContextType);
export function LocationContextProvider({ children }: LocationContextProps) { const {uid, token} = useContext(UserContext); const [currentLocation, setCurrentLocation] = useState<Location | undefined>(); const [arrayLocations, setArrayLocations] = useState([]);
}