You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Android Studio: Koala
Android Emulator: Pixel 8 Pro API 35
Test:
Requesting one or more permissions with either read and/or write access.
Ideas:
Health Connect requires all permissions to be requested at once (all together), not sequentially.
It is currently unclear how startActivityForResult(call, intent, "handleRequestPermission") in HealthConnectPlugin.requestHealthPermissions(call: PluginCall) sends the permission requests.
Potentially, triggering permissions with registerForActivityResult().launch() and without Capacitor might be helpful.
HealthConnect.requestHealthPermissions(...)
fails withLogcat
error:Environment:
"@angular/core": "^18.0.0",
"@ionic/angular": "^8.0.0",
"@capacitor/android": "6.1.0",
"@capacitor/app": "6.0.0",
"capacitor-health-connect": "^0.6.0",
Android Studio: Koala
Android Emulator: Pixel 8 Pro API 35
Test:
Requesting one or more permissions with either
read
and/orwrite
access.Ideas:
startActivityForResult(call, intent, "handleRequestPermission")
inHealthConnectPlugin.requestHealthPermissions(call: PluginCall)
sends the permission requests.registerForActivityResult().launch()
and without Capacitor might be helpful.Resource:
Workaround:
Use
HealthConnect.openHealthConnectSetting()
to open Health Connect so the user can select the required permissions.@yukukotani Please, take a look.
Thank you.
The text was updated successfully, but these errors were encountered: