Android Permissions

Back to How-to Discussions
The issue in this thread has been resolved.

I'm trying to ask permission

var permissionPromise = Permissions.Request(Permissions.Android.RECORD_AUDIO);

but getting

Uno.Permissions.Permissions does not contain a member called 'Android'. Could you be missing a package reference?

Project-file has "Uno.Permissions". So where did you hide these?

(Fuse 1.2.1)

Not sure why you're getting that error, but what's suspicious is the double Permissions.Permissions.

Make sure you also have using Uno.Permissions; on top of your .uno file, maybe that'll help. Here's a working example for reference: fuse-device.

Post Stats
  • 2
    replies
  • 106
    views
  • 2
    users