Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Added a background service for tosting the current location each 3 seconds in the Demo app #87

Merged
merged 5 commits into from
Dec 5, 2017

Conversation

DimitarTachev
Copy link
Contributor

No description provided.

import { Accuracy } from "ui/enums";
let Toast = require("nativescript-toast");
(<any>android.app.Service).extend("com.nativescript.location.BackgroundService", {
onStartCommand: function (intent, flags, startId) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The service shows toasts only on initial app deploy. If the app has been stopped, no more toast will be displayed. Additionally, it would be nice to be able to stop the toasts once started.

@ghost ghost assigned lini Dec 4, 2017
Dimitar Tachev and others added 3 commits December 4, 2017 16:39
- activate background monitoring with a button instead of on startup
- apply fix suggested in #86
@lini lini force-pushed the tachev/add-background-location-demo branch from 3c31359 to b8d9cb1 Compare December 4, 2017 14:39
@lini lini merged commit 44f1cd2 into master Dec 5, 2017
@lini lini deleted the tachev/add-background-location-demo branch December 5, 2017 12:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants