8000 Unable to connect google health · Issue #21 · ubie-oss/capacitor-health-connect · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
10000
Skip to content
Unable to connect google health #21
Open
@Rahul-codoffer

Description

@Rahul-codoffer

I have tried to connect the google health with my ionic application.

Ionic Version: 7.2.0
Angular Version : 16.2.6

First i have checked the google health is installed ?
using this :

 const healthConnectAvailability = await HealthConnect.checkAvailability();

in response i got the available

after this i have requestHealthPermissions for steps like this

const requestHealthPermissions = await HealthConnect.requestHealthPermissions({ read: ['Steps'], write: ['Steps'] });

in the response i got

grantedPermissions : []
hasAllPermissions : false

also i have update the AndroidManifest.xml

    <queries>
        <package android:name="com.google.android.apps.healthdata" />
    </queries>
    <uses-permission android:name="android.permission.health.READ_HEART_RATE" />
    <uses-permission android:name="android.permission.health.WRITE_HEART_RATE" />
    <uses-permission android:name="android.permission.health.READ_STEPS" />
    <uses-permission android:name="android.permission.health.WRITE_STEPS" />
    <uses-permission android:name="android.permission.health.READ_EXERCISE" />
    <uses-permission android:name="android.permission.health.WRITE_EXERCISE" />
    <uses-permission android:name="android.permission.health.READ_TOTAL_CALORIES_BURNED" />
    <uses-permission android:name="android.permission.health.WRITE_TOTAL_CALORIES_BURNED" />
    <uses-permission android:name="android.permission.health.READ_WEIGHT" />
    <uses-permission android:name="android.permission.health.WRITE_WEIGHT" />

also i have tried to check permission with

 await HealthConnect.openHealthConnectSetting();

but it's showing nothing.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0