📄️ Getting started
The Fundamentals section of this documentation provides a tour of the most important aspects of ROOK SDK. It covers everything you need to know to integrate us into your application.
📄️ Grant Permissions
ROOK SDK requires the user to explicitly grant permissions to access and extract data from Health Connect (Android) and Apple Health (iOS).
📄️ Update User ID
Before any data synchronization, we need to set or configure a user to identify the data and know who owns the information. We recommend configuring this after your login using the updateUser function of useRookConfiguration, as shown below.
📄️ Configure Background
Setting background functions allows us to send new information as we get notified. This helps to resend that information to you through your webhook previously configured in the ROOK Portal.
📄️ Manual Sync
If you want to sync data by clicking a button, you can do so. The entire file should look like this
📄️ Add the rest of your data sources to your application
ROOK offers a list of providers that you can include in your application, allowing your users to share information from the wearables they use, thereby providing you with more insights. There are two ways to achieve this:
📄️ Steps Extraction
ROOK offers the ability to extract steps from Apple Health, Health Connect, and the Android Steps System. This section describes how to achieve this.
📄️ Connecting to a Broadcast Channel
This tutorial will guide you step by step on how to connect and listen to notifications via the broadcast channel using NativeEventEmitter in React Native with the module provided by react-native-rook-sdk.