Anil8753
Anil8753

Reputation: 2735

request permission without Method Channel

I want to request WRITE_EXTERNAL_STORAGE permission. I added <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

I know how to request runtime permission in Java request permissions

The same I want to achieve in Dart without using Method Channel and invoking the Java code. I searched but did not find a way.

Upvotes: 1

Views: 584

Answers (2)

Anil8753
Anil8753

Reputation: 2735

Now, simple_permissions plugin is available. It is new but easy to use.

Upvotes: 1

R&#233;mi Rousselet
R&#233;mi Rousselet

Reputation: 277067

This is not possible. Such information is available only with Method Channel.

Upvotes: 2

Related Questions