title: NativeScript Permissions - Cannot find name 'android'?
body: <p>I'm using the <a href="https://market.nativescript.org/plugins/@spartadigital%2Fnativescript-permissions" rel="nofollow noreferrer"><code>Spartadigital NativeScript Permissions</code></a> plugin</p>
  
  <p>I've also  did : </p>
  
  <pre><code>tns plugin add @spartadigital/nativescript-permissions
  </code></pre>
  
  <p>And inside the <code>ts</code> file  : </p>
  
  <pre><code>import {Permissions} from '@spartadigital/nativescript-permissions';
  </code></pre>
  
  <p>However when I run <code>tns run android</code> : I get : </p>
  
  <blockquote>
    <p>node_modules/@spartadigital/nativescript-permissions/permissions.android.d.ts(2,37):
    error TS2304: Cannot find name 'android'.</p>
    
    <p>node_modules/@spartadigital/nativescript-permissions/permissions.android.d.ts(3,34):
    error TS2304: Cannot find name 'android'.
    node_modules/@spartadigital/nativescript-permissions/permissions.ios.d.ts(24,47):
    error TS2552: Cannot find name 'NSObject'. Did you mean 'Object'?
    node_modules/@spartadigital/nativescript-permissions/permissions.ios.d.ts(24,67):
    error TS2304: Cannot find name 'CLLocationManagerDelegate'.
    node_modules/@spartadigital/nativescript-permissions/permissions.ios.d.ts(26,20):
    error TS2304: Cannot find name 'CLLocationManagerDelegate'.</p>
  </blockquote>
  
  <p>Looking at the file , I see that it doesn't know <code>android</code> : </p>
  
  <p><a href="https://i.stack.imgur.com/cKhL6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cKhL6.png" alt="enter image description here"></a></p>
  
  <p>Nor other IOS objects : </p>
  
  <p><a href="https://i.stack.imgur.com/F7wEh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/F7wEh.png" alt="enter image description here"></a></p>
  
  <p>I already have tns-platform-declarations : </p>
  
  <p><a href="https://i.stack.imgur.com/rYZ4T.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rYZ4T.png" alt="enter image description here"></a></p>
  
  <p><strong>Question:</strong></p>
  
  <p>Why doesn't it recognize those keywords and how can I fix it ?</p>
  
  <p><a href="https://gist.github.com/anonymous/c8f3d543d1cd61af2435348e2f8dd659" rel="nofollow noreferrer">package.json</a></p>
  
  <p><a href="https://gist.github.com/anonymous/76162a841b0103a38c23f408a41c9801" rel="nofollow noreferrer">ts.config</a></p>