Coder Social home page Coder Social logo

hiyorin / permissionplugin-for-unity Goto Github PK

View Code? Open in Web Editor NEW
20.0 20.0 1.0 1.91 MB

A set of tools for Unity to allow handling Permission for Android and iOS.

License: MIT License

Java 17.53% C# 72.75% Objective-C++ 9.72%
android ios unity

permissionplugin-for-unity's People

Contributors

hiyorin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

nickarthur

permissionplugin-for-unity's Issues

PermissionPlugin.Check() never returns when permission is not granted ?

Hi,
In my project I need both camera and location permissions for some features. So I'm using this plugin in order to do so :

`
private IEnumerator ASyncCheckPermission()
{
switch (_permissionType)
{
case Permission.Camera:
yield return PermissionPlugin.Check(PermissionPlugin.Permission.Camera, result => bPermissionGranted = result);
break;

        case Permission.Location:
            yield return PermissionPlugin.Check(PermissionPlugin.Permission.Location, result => bPermissionGranted = result);
            break;
    }

    yield return OnPermission(bPermissionGranted);
}`

According to my logs, OnPermission(bool) never actually gets called if the user didn't give the asked permission.... I can see dialogs asking me for permission on my Android phone though.
If permissions are given, my function gets called and I can see the logs I put in.

Is this an issue with recent Android versions ? Should I expect same situation on iOS ?

BR,
Vinny

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.