forked from e-mission/e-mission-data-collection
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement the
fixFitnessPermissions
method
High level changes: - create a new method in the foreground delegate - checks and returns appropriate plugin results - moved from `TripDiarySensorControlChecks` - create a new interface for the async operation to read the activity results, which is the only way to generate the prompt - moved this from the `cordova-server-sync` repo e-mission/cordova-server-sync#50 - stored callback functions and invoked them asynchronously, similar to the location changes in ca979bd - ensured that the simulator always returns TRUE to allow easy testing of other features - changed the error messages to improve user instructions, including: - if motion activity is not supported on the device, uninstall - if the permission is off, fix in app settings - if the setting is off, fix and restart the app Related testing: e-mission/e-mission-docs#680 (comment) e-mission/e-mission-docs#680 (comment)
- Loading branch information
Showing
5 changed files
with
150 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters