CapacitorGoogleAuth
CapacitorGoogleAuth copied to clipboard
Not getting sign in result on first attempt
Not getting sign in result on first attempt , in second attempt is working fine.
Getting this in first attempt

second attempt


i did this and it works, because the service worker is unreadable if not implemented
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);
}
});
}