2.3.6 • Published 6 months ago
@manojdcoder/nativescript-pedometer v2.3.6
@manojdcoder/nativescript-pedometer
ns plugin add @manojdcoder/nativescript-pedometer
Usage
Example
Refer the demo app
Android Settings
Foreground service is used to continuously monitor step counts even app is in background or not running or killed. The webpack configuration must be adjusted to include the foreground service,
const webpack = require('@nativescript/webpack');
const { resolve } = require('path');
module.exports = (env) => {
// Copy the line below to your webpack.config.js
env.appComponents = (env.appComponents || []).concat([resolve(__dirname, 'node_modules/@manojdcoder/nativescript-pedometer/step-counter-broadcast-receiver.android')]);
webpack.init(env);
webpack.useConfig('typescript');
webpack.chainWebpack((config) => {
// shared demo code
config.resolve.alias.set('@demo/shared', resolve(__dirname, '..', '..', 'tools', 'demo'));
});
// Example if you need to share images across demo apps:
// webpack.Utils.addCopyRule({
// from: '../../../tools/images',
// to: 'images',
// context: webpack.Utils.project.getProjectFilePath('node_modules')
// });
return webpack.resolveConfig();
};
License
Apache License Version 2.0
2.3.0
7 months ago
2.2.1
9 months ago
2.2.0
9 months ago
2.3.2
6 months ago
2.2.3
9 months ago
2.3.1
6 months ago
2.2.2
9 months ago
2.3.4
6 months ago
2.3.3
6 months ago
2.3.6
6 months ago
2.3.5
6 months ago
2.1.0
10 months ago
2.0.3
12 months ago
2.0.2
12 months ago
2.0.5
11 months ago
2.0.4
12 months ago
2.0.7
11 months ago
2.0.6
11 months ago
2.0.8
11 months ago
2.0.1
12 months ago
2.0.0
12 months ago
1.0.1
2 years ago
1.0.0
2 years ago
0.2.1
2 years ago
0.2.0
2 years ago
0.1.1
2 years ago
0.1.0
2 years ago