Skip to content
This repository has been archived by the owner on Jul 7, 2022. It is now read-only.

Behavior on IOS #50

Open
abdallahkadour opened this issue Jan 14, 2022 · 0 comments
Open

Behavior on IOS #50

abdallahkadour opened this issue Jan 14, 2022 · 0 comments

Comments

@abdallahkadour
Copy link

abdallahkadour commented Jan 14, 2022

I have installed the plugin using the command:
$ tns plugin add @master.technology/permissions
And used it as follow:

permissions
      .requestPermission(
        permissions.PERMISSIONS.CAMERA,
        "why not the permission"
      )
      .then(() => {
        console.log("Woo Hoo, I have the power!");
      })
      .catch(() => {
        console.log("Uh oh, no permissions - plan B time!");
      });

To the info.plist I have added the following key:

<key>NSCameraUsageDescription</key>
<string>Required for make images of documents that need to be uploaded</string>

When the code is executed, both functions are not executed, I only get the following block logged to the console:

CONSOLE LOG: Getting ios.CAMERA
(UIKitCore) [com.apple.UIKit:PointerLockState] preferredPointerLockStatus updated: scene: <UIWindowScene: 0x7f853f02bd50; sceneIdentifier: "sceneID:org.nativescript.VOISMGOV-default">; viewController: <UIViewControllerImpl: 0x7f853f573ff0>; preferredPointerLockStatus: _UIPointerLockStatusUnlocked

I am using:

"typescript": "~4.3.5"
"@nativescript/angular": "^12.2.0",
tns: 8.1.5
@abdallahkadour abdallahkadour changed the title Behaviour on IOS Behavior on I Jan 14, 2022
@abdallahkadour abdallahkadour changed the title Behavior on I Behavior on IOS Jan 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant