From cd854d437e848c6f5f6820e84709787b86d50c08 Mon Sep 17 00:00:00 2001 From: Dario Salvi Date: Wed, 8 Nov 2017 15:52:51 +0000 Subject: [PATCH] fixes #95 fixes #86 --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 6d3f8bb..2082299 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,23 @@ Phonegap Build `config.xml`: ``` +If, for some reason, the Info.plist loses the HEALTH_READ_PERMISSION and HEALTH_WRITE_PERMISSION, you probably need to add the following to your project's package.json: + +``` +{ + "cordova": { + "plugins": { + "cordova-plugin-health": { + "HEALTH_READ_PERMISSION": "App needs read access", + "HEALTH_WRITE_PERMISSION": "App needs write access" + }, + }, + } +} +``` + +This is known to happen when using the Ionic Package cloud service. + ## iOS requirements * Make sure your app id has the 'HealthKit' entitlement when this plugin is installed (see iOS dev center).