Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work #7

Open
Leonid-Kiev opened this issue Sep 1, 2016 · 1 comment
Open

Doesn't work #7

Leonid-Kiev opened this issue Sep 1, 2016 · 1 comment

Comments

@Leonid-Kiev
Copy link

Leonid-Kiev commented Sep 1, 2016

Tried to use in a service, but callback has never being called,
as well as no notifications were shown

 @Override
    public int onStartCommand(final Intent intent, final int flags, final int startId) {
        Log.d(LOG_TAG, "onStartCommand, action = " + intent.getAction());
        PermissionEverywhere.getPermission(this,
                new String[]{android.Manifest.permission.ACCESS_COARSE_LOCATION,
                        android.Manifest.permission.ACCESS_FINE_LOCATION},
                REQ_CODE,
                getString(R.string.app_name),
                getString(R.string.location_permission_required),
                R.drawable.icon)
                .enqueue(new PermissionResultCallback() {
                    @Override
                    public void onComplete(PermissionResponse permissionResponse) {
                        // NEVER called
                        Log.d(LOG_TAG, "onComplete. granted = " + permissionResponse.isGranted());

                    }
                });
        return START_STICKY;
    }
@bag7dad
Copy link

bag7dad commented Dec 20, 2017

same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants