Fratozzi Posted March 17, 2020 Share Posted March 17, 2020 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 Quote Link to comment Share on other sites More sharing options...
gw1500se Posted March 17, 2020 Share Posted March 17, 2020 (edited) 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 March 17, 2020 by gw1500se Quote Link to comment Share on other sites More sharing options...
Fratozzi Posted March 17, 2020 Author Share Posted March 17, 2020 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! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.