jaumecornado / DroidNubeKit

An Apple's CloudKit library for Android. If you have an iOS App with CloudKit now you can use the contents on Android too.
MIT License
148 stars 14 forks source link

Cannot Open CloudKit Authentication WebView #1

Open bvsveera opened 8 years ago

bvsveera commented 8 years ago

When attempting to create new records, or do anything that requires authentication, while unauthenticated, DroidNubeKit attempts to open Apple's authentication webpage as expected. However, the webpage does not load - a blank WebView opens with the following messages appearing in the logcat:

08-19 23:44:17.270 19847-20391/com.bharatiyer.numedsa I/System.out: net.moddity.droidnubekit.responsemodels.DNKUnauthorizedResponse@2bc6e5d
08-19 23:44:17.289 19847-19847/com.bharatiyer.numedsa I/WebViewFactory: Loading com.android.webview version 44.0.2403.119 (code 246011910)
08-19 23:44:17.311 19847-19847/com.bharatiyer.numedsa W/System: ClassLoader referenced unknown path: /system/app/webview/lib/x86
08-19 23:44:17.319 19847-19847/com.bharatiyer.numedsa I/LibraryLoader: Time to load native libraries: 4 ms (timestamps 3314-3318)
08-19 23:44:17.319 19847-19847/com.bharatiyer.numedsa I/LibraryLoader: Expected native library version number "",actual native library version number ""
08-19 23:44:17.325 19847-19847/com.bharatiyer.numedsa V/WebViewChromiumFactoryProvider: Binding Chromium to main looper Looper (main, tid 1) {e634ca3}
08-19 23:44:17.325 19847-19847/com.bharatiyer.numedsa I/LibraryLoader: Expected native library version number "",actual native library version number ""
08-19 23:44:17.325 19847-19847/com.bharatiyer.numedsa I/chromium: [INFO:library_loader_hooks.cc(120)] Chromium logging enabled: level = 0, default verbosity = 0
08-19 23:44:17.328 19847-19847/com.bharatiyer.numedsa I/BrowserStartupController: Initializing chromium process, singleProcess=true
08-19 23:44:17.328 19847-19847/com.bharatiyer.numedsa W/art: Attempt to remove non-JNI local reference, dumping thread
08-19 23:44:17.328 19847-19847/com.bharatiyer.numedsa E/SysUtils: ApplicationContext is null in ApplicationStatus
08-19 23:44:17.337 19847-19847/com.bharatiyer.numedsa W/chromium: [WARNING:resource_bundle.cc(285)] locale_file_path.empty()
08-19 23:44:17.338 19847-19847/com.bharatiyer.numedsa E/libEGL: validate_display:255 error 3008 (EGL_BAD_DISPLAY)
08-19 23:44:17.338 19847-19847/com.bharatiyer.numedsa E/libEGL: validate_display:255 error 3008 (EGL_BAD_DISPLAY)
08-19 23:44:17.370 19847-20443/com.bharatiyer.numedsa W/AudioManagerAndroid: Requires BLUETOOTH permission
08-19 23:44:17.376 19847-19847/com.bharatiyer.numedsa E/DataReductionProxySettingListener: No DRP key due to exception:java.lang.ClassNotFoundException: com.android.webview.chromium.Drp
08-19 23:44:17.395 19847-19847/com.bharatiyer.numedsa W/art: Attempt to remove non-JNI local reference, dumping thread
08-19 23:44:17.399 19847-19847/com.bharatiyer.numedsa W/AwContents: onDetachedFromWindow called when already detached. Ignoring
08-19 23:44:17.483 19847-19847/com.bharatiyer.numedsa I/System.out: net.moddity.droidnubekit.errors.DNKAuthenticationRequiredException
08-19 23:44:17.483 19847-20441/com.bharatiyer.numedsa W/chromium: [WARNING:data_reduction_proxy_config.cc(423)] SPDY proxy OFF at startup
08-19 23:44:17.650 19847-19885/com.bharatiyer.numedsa E/Surface: getSlotFromBufferLocked: unknown buffer: 0xa23db690
08-19 23:44:17.671 19847-19885/com.bharatiyer.numedsa E/Surface: getSlotFromBufferLocked: unknown buffer: 0xa23db460
08-19 23:58:43.168 19847-19885/com.bharatiyer.numedsa E/Surface: getSlotFromBufferLocked: unknown buffer: 0xa23dd290
08-19 23:58:43.189 19847-19847/com.bharatiyer.numedsa W/art: Attempt to remove non-JNI local reference, dumping thread
08-19 23:58:43.190 19847-19847/com.bharatiyer.numedsa W/AwContents: onDetachedFromWindow called when already detached. Ignoring

I understand that this project has not been updated in a while, but I would greatly appreciate any help you could provide. DroidNubeKit has been absolutely fantastic for fetching records to use in my Android app thus far.

juangz commented 7 years ago

Hey @bvsveera, have you found how to solve this? I'm facing the same issue! Thanks in advance

bvsveera commented 7 years ago

@juangz unfortunately, I wasn't able to find a way around this. I imagine that there would be a way to get this to work, but evidently it is not easy. And it seems like this project is not under active development any more, so I wouldn't expect an update either.

ebqualcosa commented 7 years ago

As first step you need to change redirectUrl to redirectURL in DNKUnauthorizedResponse.java