Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using this plugin for HKWorkoutActivityTypeMindAndBody data Type #110

Open
phiasco12 opened this issue May 20, 2019 · 0 comments
Open

using this plugin for HKWorkoutActivityTypeMindAndBody data Type #110

phiasco12 opened this issue May 20, 2019 · 0 comments

Comments

@phiasco12
Copy link

Hello,

I'm trying to use this plugin and I need to for 'HKWorkoutActivityTypeMindAndBody'

but when I use the following code, the healthkit dialog wont popup and I get the error message!

  function requestAuth() {
    var supportedTypes = [
	  'HKWorkoutActivityTypeMindAndBody'
    ];
    window.plugins.healthkit.requestAuthorization(
        {
          readTypes: supportedTypes,
          writeTypes: supportedTypes
        },
        function(){alert('ok')},
        function(){alert('error')}
    );
  }

does this plugin support HKWorkoutActivityTypeMindAndBody data Type?

Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant