Android Permissions

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.

I was trying to do the permission check in a partial class, but moved it to my foreign code class and it works now. Thanks :slight_smile: