Sample Application – HealthDiary cannot write anything

When I try to check how the sample application - Health Diary works, it can’t add any data.
An exception occurs: com.samsung.android.sdk.health.data.error.AuthorizationException: 2003: Permission is not allowed due to SDK policy

Is it possible to add the writing permission for the sample application?

I got the source code of the sample application in the “Samsung Health Data SDK v1.0.0 beta2” archive.

The documentation says that the application can write nutrition, but the Access Code for activating the writing mode is not specified.

Hello,
Welcome to the community.

Please report this issue to the Developer Support for 1-on-1 communication.
It will solve your problem faster.

Thanks
Shamima
Samsung Developer Program Team