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

Error message : Failed to get songs: 'you don't have the user permission to access the camera'. #13

Open
mtkgeek opened this issue Aug 24, 2019 · 2 comments

Comments

@mtkgeek
Copy link

mtkgeek commented Aug 24, 2019

The MusicFinder.allSongs(); call is throwing the above error. The error message makes it very hard for me to debug because i see no reason why permission for camera usage should even be requested in the first place.
Snippet.

Future initPlatformState() async {
 
    try {
      songs = await MusicFinder.allSongs();
    } catch (e) {
      print("Failed to get songs: '${e.message}'.");
    }

    print(songs);
    // If the widget was removed from the tree while the asynchronous platform
    // message was in flight, we want to discard the reply rather than calling
    // setState to update our non-existent appearance.
    if (!mounted) return;

    setState(() {
      _isLoading = false;
    });
  }`
```
    
@agreensh
Copy link

agreensh commented Aug 24, 2019 via email

@mtkgeek
Copy link
Author

mtkgeek commented Aug 24, 2019

Yeah thanks, i thought as much but my question is how do i get it to work(fetch songs on the device)?

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

No branches or pull requests

2 participants