FAQ
faq what are the benefits of the samsung health data sdk? samsung health has various features to measure the health data of users it allows for automatically measuring vital signs and recording activities with connected accessories these accessories include galaxy watch, galaxy fit, galaxy ring, a blood glucose monitor, and a weight scale users can track, for example, their daily steps, heart rate, sleep, nutrition, and other data managing a healthy lifestyle is easier and simpler with samsung health the samsung health data sdk allows android applications to read selected health data from samsung health’s data store you can use this data to build custom applications related to such interests as general health monitoring, improving sleep conditions, tracking progress of physical activity, and more how do i get access to the samsung health data sdk and documentation? you can access the samsung health data sdk library download and documentation from here which devices is the samsung health data sdk available for? the samsung health data sdk runs on devices with android 10 api level 29 or above it is available on all samsung smartphones and non-samsung phones the samsung health application has the same device requirements the samsung health data sdk requires prior samsung health installation more information about the limitations is available here what kind of data can i read from samsung health? an application using the samsung health data sdk can read saved health data in samsung health, such as steps, exercise, and sleep data all available health data are listed here when i test the application, i get the `2003 permission not allowed due to sdk policy error` how can i fix it? if you see this error, please check that your application package name registration and the distributed application’s signature sha-256 are the same with your request to the samsung health team if they are the same, you can ask for an information change at samsung developer site > support > developer support additionally, for application testing purposes, please use the developer mode of the samsung health data sdk it can be enabled in samsung health; for more information, see here i received the `platform_not_installed` or `old_version_platform` exception how do i fix this? the samsung health data sdk runs with the samsung health application if the samsung health application is not installed or the installed version is too old, the samsung health data sdk gives the following exceptions platform_not_installed occurs if the samsung health application is not installed on the phone old_version_platform occurs when the installed samsung health version is older than required by the samsung health data sdk it can be resolved by invoking resolvableplatformexception resolve activitycontext this api enables your application to jump to the right market page to install or update the samsung health application i receive the `err_no_user_permission` error how do i fix this? accessing samsung health’s data requires the user’s agreement for the sdk data permissions you can resolve this error by calling one of the following apis with the necessary data permissions for your application healthdatastore requestpermissions set<permission>, activity healthdatastore requestpermissionsasync set<permission>, activity these apis display a data permission pop-up to the user and the user can then allow each data permission avoid annoying the user with endlessly repeating permission requests if the user denies few times, stop requesting permissions instead, provide a proper guide message with your application setting menu information to let them know they should allow data permissions with samsung health how can i solve the error_access_control error? it means that the data type is not included in the available data scope for your application to solve this issue, please submit your query at the samsung developer site > support > developer support the health team will check your query and reply can i distinguish a source device of health data? each data point has data source information including the device id indicating which device provided the health data you can retrieve the source device’s details devicemanager getdevice deviceid string device the datatype in the device’s details can be a galaxy watch, galaxy ring, galaxy fit, a smartphone, or a health accessory device you can use this information to filter data points how can i check which data have been changed using the samsung health data sdk? new or deleted data can be checked on demand each time the application invokes the readchange api, the modified data will be returned healthdatastore readchanges and healthdatastore readchangesasync provide data change information for a given data type and a time filter these apis give a change type indicating new, updated, or deleted data a data id if the data has been deleted a data point for new or updated data a changed time can i insert data into samsung health using health data sdk? the functionality of inserting data into samsung health with samsung health data sdk is already available to write health data into the samsung health, request partnership as the app creation process after approval of your request, an access code to write data on the developer mode will be provided that access code is available for one application please check the developer mode for more information