CapacitorGoogleAuth icon indicating copy to clipboard operation
CapacitorGoogleAuth copied to clipboard

Not getting sign in result on first attempt

Open satishviztar opened this issue 3 years ago • 2 comments

Not getting sign in result on first attempt , in second attempt is working fine.

Getting this in first attempt WhatsApp Image 2022-06-29 at 11 24 11 AM

second attempt WhatsApp Image 2022-06-29 at 11 32 13 AM

satishviztar avatar Jun 29 '22 06:06 satishviztar

image

i did this and it works, because the service worker is unreadable if not implemented

ghost-exploiter avatar Dec 20 '22 07:12 ghost-exploiter

        ServiceWorkerController swController = null;
        if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.N) {
            swController = ServiceWorkerController.getInstance();
        }

        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
            swController.setServiceWorkerClient(new ServiceWorkerClient() {
                @Override
                public WebResourceResponse shouldInterceptRequest(WebResourceRequest request) {
                    return bridge.getLocalServer().shouldInterceptRequest(request);
                }
            });
        }

ghost-exploiter avatar Dec 20 '22 07:12 ghost-exploiter