Jump to content

Recommended Posts

Good morning!

I was wondering how can i access the php data to the health data (steps, heart rate etc ..) of devices with android and ios?

I don't know maybe by inserting the keys I can access the json with the related data...

I tried to search a bit on the internet but I see that I can only do it if I create an app for both systems and then from there I enter the data in my mysql database..

I don't know where to start, do you know something?

Thank you

Link to comment
https://forums.phpfreaks.com/topic/310307-accesa-ti-health-data-ios-and-android/
Share on other sites

You can't. At least not from PHP directly. PHP is server side. If I understand what you want, you can create an app or javascript using ajax to transmit the data to a PHP script but you can't access the data from PHP. The transfer must be initiated from the client side. All  PHP can do it put up a page requesting that data from the user.

Edited by gw1500se
2 hours ago, gw1500se said:

You can't. At least not from PHP directly. PHP is server side. If I understand what you want, you can create an app or javascript using ajax to transmit the data to a PHP script but you can't access the data from PHP. The transfer must be initiated from the client side. All  PHP can do it put up a page requesting that data from the user.

Ok, but the default iOS and Android app does not damage the ability to access your health data to json, that is, it does not guarantee APIs to be implemented via js / php?  Thanks for the reply!

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.