You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have developed a React Native application that works fine in its basic form. To enhance its functionality, I decided to integrate the react-native-health-connect library to access health-related data. Following the library's official documentation, I was able to install and link the library to my project without any initial issues.
Issue
However, after adding the necessary permissions to the Android manifest and attempting to run the application on an Android device, the app crashes immediately upon launch. I attempted to run the same codebase on iOS and in a browser environment. As expected, it showed an error message stating that react-native-health-connect is not supported on these platforms, which aligns with the library's documentation. The primary concern is the unexpected crash on Android, which is supposed to be a supported platform.
Steps to Reproduce
Create a new React Native application.
Install the react-native-health-connect library using npm.
Follow the installation and setup instructions provided in the library's README, including the addition of permissions in the Android manifest.
Attempt to run the application on an Android device/emulator.
Error
lateinit property requestPerssion has been initiazed,
Expected Behavior
The application should launch without crashing, and the react-native-health-connect library should be initialized successfully, allowing for health data access following user permission.
Actual Behavior
The application crashes immediately upon launch on Android devices, with no specific error message provided that could hint at the cause of the issue.
Description
I have developed a React Native application that works fine in its basic form. To enhance its functionality, I decided to integrate the
react-native-health-connect
library to access health-related data. Following the library's official documentation, I was able to install and link the library to my project without any initial issues.Issue
However, after adding the necessary permissions to the Android manifest and attempting to run the application on an Android device, the app crashes immediately upon launch. I attempted to run the same codebase on iOS and in a browser environment. As expected, it showed an error message stating that
react-native-health-connect
is not supported on these platforms, which aligns with the library's documentation. The primary concern is the unexpected crash on Android, which is supposed to be a supported platform.Steps to Reproduce
react-native-health-connect
library using npm.Error
lateinit property requestPerssion has been initiazed,
Expected Behavior
The application should launch without crashing, and the
react-native-health-connect
library should be initialized successfully, allowing for health data access following user permission.Actual Behavior
The application crashes immediately upon launch on Android devices, with no specific error message provided that could hint at the cause of the issue.
Environment
Additional Context
Screenshots
The text was updated successfully, but these errors were encountered: