bradmartin / nativescript-advanced-webview

NativeScript plugin for Chrome CustomTabs on Android and SafariViewController on iOS.
Other
60 stars 28 forks source link

Chrometabs to defaults #14

Closed krisidmisso closed 5 years ago

krisidmisso commented 7 years ago

Hello Brad, First thank you very much for this plugin. The difference in speed is noticed immediately compared to webview. I have a problem when I run this in the Visual Studio Emulator with Andoird 5.1 and Chrome Browser installed (The application crashes, log in the bottom of this message).

In my device it runs well but there is the action of selecting the default browser(which is chrome) and after that you can always open chrometabs. If you dont select Chrome to be default it always asks you. Is there anyway of assuming Chrome to be default?? My device has android 4.4.4 but if its doable in newer versions i dont mind knowing it :).

I/ActivityManager( 441): START u0 {act=android.intent.action.VIEW dat=http://www.panorama.com.al/deputeti-i-rames-zbulon-negociatat-basha-nxori-jashte-loje-aleatet-ja-pse-i-genjeu/ flg=0x800000 cmp=com.android.chrome/org.chromium.chrome.browser.customtabs.CustomTabActivity (has extras)} from uid 10078 on display 0 V/WindowManager( 441): addAppToken: AppWindowToken{c356dd8 token=Token{a7944bb ActivityRecord{358a6d4a u0 com.android.chrome/org.chromium.chrome.browser.customtabs.CustomTabActivity t66}}} to stack=1 task=66 at 2 I/cr_LibraryLoader(14489): Using linker: org.chromium.base.library_loader.LegacyLinker W/linker (14489): libchromium_android_linker.so: unused DT entry: type 0x6ffffffe arg 0xbc8 W/linker (14489): libchromium_android_linker.so: unused DT entry: type 0x6fffffff arg 0x3 V/WindowManager( 441): Adding window Window{1c70e969 u0 com.android.chrome/org.chromium.chrome.browser.customtabs.CustomTabActivity} at 4 of 9 (after Window{d3d463a u0 com.krisidmisso.Gossip/com.tns.NativeScriptActivity}) V/WindowManager( 441): Adding window Window{3106fc8f u0 SurfaceView} at 4 of 10 (before Window{1c70e969 u0 com.android.chrome/org.chromium.chrome.browser.customtabs.CustomTabActivity}) chromium: [INFO:library_loader_hooks.cc(140)] Chromium logging enabled: level = 0, default verbosity = 0 I/ActivityManager( 441): Start proc 14520:com.android.chrome:sandboxed_process0/u0i3 for service com.android.chrome/org.chromium.content.app.SandboxedProcessService0 I/ActivityManager( 441): Displayed com.android.chrome/org.chromium.chrome.browser.customtabs.CustomTabActivity: +1s354ms (total +1s774ms) I/cr_BrowserStartup(14489): Initializing chromium process, singleProcess=false I/ActivityManager( 441): Start proc 14562:com.android.chrome:privileged_process0/u0a78 for service com.android.chrome/org.chromium.content.app.PrivilegedProcessService0 I/cr_LibraryLoader(14562): Using linker: org.chromium.base.library_loader.LegacyLinker W/linker (14562): libchromium_android_linker.so: unused DT entry: type 0x6ffffffe arg 0xbc8 W/linker (14562): libchromium_android_linker.so: unused DT entry: type 0x6fffffff arg 0x3 chromium: [INFO:library_loader_hooks.cc(140)] Chromium logging enabled: level = 0, default verbosity = 0 I/cr_LibraryLoader(14520): Using linker: org.chromium.base.library_loader.LegacyLinker W/linker (14520): libchromium_android_linker.so: unused DT entry: type 0x6ffffffe arg 0xbc8 W/linker (14520): libchromium_android_linker.so: unused DT entry: type 0x6fffffff arg 0x3 chromium: [INFO:library_loader_hooks.cc(140)] Chromium logging enabled: level = 0, default verbosity = 0 I/art (14489): Rejecting re-init on previously-failed class java.lang.Class<org.chromium.content.browser.FloatingActionModeCallback> I/art (14489): Rejecting re-init on previously-failed class java.lang.Class<org.chromium.content.browser.FloatingActionModeCallback> F/google-breakpad(14595): M A48CE000 00000000 00018000 AFEF64D06B9A2E8DF050906F3AD0CDC60 libchromium_android_linker.so F/google-breakpad(14595): M ACA51000 00000000 00002000 4651ECB3F77EC8B4EB4FB4A5D7BF61DE0 libwebviewchromium_loader.so chromium: [ERROR:compositor_impl_android.cc(685)] Failed to init ContextProvider for compositor. chromium: [WARNING:compositor_view.cc(243)] Child process disconnected (type=9) pid=14562) W/ActivityManager( 441): Scheduling restart of crashed service com.android.chrome/org.chromium.content.app.PrivilegedProcessService0 in 1000ms I/cr_LogcatExtraction(14489): Trying to extract logcat for minidump chromium-renderer-minidump-405046c63c0a1579.dmp14562. I/ActivityManager( 441): Start proc 14607:com.android.chrome:privileged_process1/u0a78 for service com.android.chrome/org.chromium.content.app.PrivilegedProcessService1 I/cr_LibraryLoader(14607): Using linker: org.chromium.base.library_loader.LegacyLinker W/linker (14607): libchromium_android_linker.so: unused DT entry: type 0x6ffffffe arg 0xbc8 W/linker (14607): libchromium_android_linker.so: unused DT entry: type 0x6fffffff arg 0x3 chromium: [INFO:library_loader_hooks.cc(140)] Chromium logging enabled: level = 0, default verbosity = 0 I/cr_LogcatExtraction(14489): Succeeded extracting logcat to chromium-renderer-minidump-405046c63c0a1579.dmp14562.try0. F/google-breakpad(14635): M A48CE000 00000000 00018000 AFEF64D06B9A2E8DF050906F3AD0CDC60 libchromium_android_linker.so F/google-breakpad(14635): M ACA51000 00000000 00002000 4651ECB3F77EC8B4EB4FB4A5D7BF61DE0 libwebviewchromium_loader.so chromium: [ERROR:compositor_impl_android.cc(685)] Failed to init ContextProvider for compositor. chromium: [FATAL:compositor_impl_android.cc(686)] Too many context creation failures. Giving up... W/ActivityManager( 441): Scheduling restart of crashed service com.android.chrome/org.chromium.content.app.PrivilegedProcessService1 in 1000ms F/google-breakpad(14643): M A3E3D000 00000000 00018000 AFEF64D06B9A2E8DF050906F3AD0CDC60 libchromium_android_linker.so F/google-breakpad(14643): M ACA51000 00000000 00002000 4651ECB3F77EC8B4EB4FB4A5D7BF61DE0 libwebviewchromium_loader.so W/ActivityManager( 441): Force finishing activity 4 com.android.chrome/org.chromium.chrome.browser.customtabs.CustomTabActivity W/ActivityManager( 441): Wtf, activity ActivityRecord{358a6d4a u0 com.android.chrome/org.chromium.chrome.browser.customtabs.CustomTabActivity t66 f} in proc activity list not using proc ProcessRecord{2c8a1416 14489:com.android.chrome/u0a78}?!?

jibon57 commented 7 years ago

@krisidmisso You can check this pull https://github.com/bradmartin/nativescript-advanced-webview/pull/19