Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

requestPermission method not returning value, kind of struct this line #176

Open
Anand8293 opened this issue Nov 15, 2024 · 3 comments
Open

Comments

@Anand8293
Copy link

Anand8293 commented Nov 15, 2024

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to call "requestPermission"
try {
      const result = await requestPermission([
        {
          accessType: 'read',
          recordType: 'Steps',
        },
      ]);
      **console.log('Permission Result:', result);** Not printing value
    } catch (error) {
      console.error('Permission Error:', error);
    }

Expected behavior
Should return permission lists

Environment:

  • Health Connect Version: 3.3.0
  • React Native Version: 0.72.4
  • New architecture enabled: Yes
  • Using Expo: No/Go/Prebuild(Dev Client)
  • Android API Level: e.g API 34 (Android 14) 34
@XavierJDN
Copy link

did you fix the issue?

@matinzd
Copy link
Owner

matinzd commented Nov 23, 2024

I can see that you are on the old version of react native. Please upgrade to the latest patch version of 0.72. It shouldn't be a huge upgrade. If that didn't fix the issue, let me know.
Also make sure to follow the documentation for the android setup.

@Anand8293
Copy link
Author

Hi @matinzd I'm already using patch version of 0.72+ but still same, but with latest react-native 0.75+ working fine

but can't upgrade my long running app to 0.75+,

so please help me with 0.72+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants