Skip to content

android vs android.Manifest.permission #635

@NickIliev

Description

@NickIliev

From @snekbaev on November 21, 2016 7:7

Hi,

I had a 2.3 NG2+TS project. To work with permissions, say android.Manifest.permission.SEND_SMS I had to declare var android : any;. Upgraded to 2.4, noticed that if I remove that declaration then I get quite rich intellisense in vscode. However, when done so TS complains that Manifest is not defined in the provided global android variable. To make it happy I have to resort back to the aforementioned android:any and basically lose intellisense.

What is the suggested workaround to keep both parties happy?

Copied from original issue: NativeScript/NativeScript#3128

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions