Coder Social home page Coder Social logo

Comments (10)

ZaraclaJ avatar ZaraclaJ commented on August 20, 2024 6

You can try to accept manually the permissions in the phone parameters.
If it works with that, use simple_permissions_plugin in your projet to ask the user to accept the permissions.

from audio_recorder.

UtsavPreet avatar UtsavPreet commented on August 20, 2024

Having the Same Issue

from audio_recorder.

chwzr avatar chwzr commented on August 20, 2024

Bump? #Me2


I/flutter (21571): type 'Future<dynamic>' is not a subtype of type 'Future<bool>' where
I/flutter (21571):   Future is from dart:async
I/flutter (21571):   Future is from dart:async
I/flutter (21571):   bool is from dart:core
D/AudioRecorder(21571): Get hasPermissions

from audio_recorder.

chwzr avatar chwzr commented on August 20, 2024

got over that with simple_permissions plugin.. now there is another thingy on stop of recording...

type '_InternalLinkedHashMap<dynamic, dynamic>' is not a subtype of type 'Map<String, Object>' where...

i think its this line here... since hashmap is not a map from dart:core :( :

from audio_recorder.

namnh06 avatar namnh06 commented on August 20, 2024

I got this when try to implement your example @ZaraclaJ

from audio_recorder.

namnh06 avatar namnh06 commented on August 20, 2024

@ZaraclaJ tried to implement this package https://pub.dev/packages/simple_permissions, it seems to be that he deleted it.

from audio_recorder.

ryanw avatar ryanw commented on August 20, 2024

I had the same issue, and simple_permissions is broken. But this one seems to work fine: https://github.com/baseflowit/flutter-permission-handler

from audio_recorder.

MeyerBender avatar MeyerBender commented on August 20, 2024

@ryanw Could you share how you fixed the problem? I tried putting await Permission.microphone.request().isGranted; in front of the if (await AudioRecorder.hasPermissions) line, but that did not fix the problem, the AudioRecorder still does not seem to have the correct permissions.

from audio_recorder.

ryanw avatar ryanw commented on August 20, 2024

@ryanw Could you share how you fixed the problem? I tried putting await Permission.microphone.request().isGranted; in front of the if (await AudioRecorder.hasPermissions) line, but that did not fix the problem, the AudioRecorder still does not seem to have the correct permissions.

I used https://github.com/baseflowit/flutter-permission-handler

from audio_recorder.

tuanbs avatar tuanbs commented on August 20, 2024

I got the same issue and solved by requesting Permission.storage. But this workaround should be removed because it doesn't make sense to ask for permission to access media files when we just need to record voice.

from audio_recorder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.