-
Notifications
You must be signed in to change notification settings - Fork 8
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
Error #8
Comments
I'm getting the same issue. I worked around it by defining the other params/arguments the function really needs:
Then I ran in to another error ...
|
Have you tried this plugin? It seems that it fulfills the same goal. https://github.com/CWBudde/cordova-plugin-wkwebview-inject-cookie I added it to a project today and it works like a charm, no more cookie issue on cordova iOS. 👍 |
@guirip OMG - This plugin has just absolutely made my day. Thank you |
@monkeychops Glad I could be helpful :) |
@guirip How did you import or require cordova-plugin-wkwebview-inject-cookie to get it working? Are you on iOS 11? |
@batmanbury You just have to add the plugin cordova-plugin-wkwebview-inject-cookie
important |
I couldn't get cordova-plugin-wkwebview-inject-cookie to work because the cookie doesn't seem to set when the app is first launched. I managed to get this plugin work by editing WKWebViewSyncCookies.m directly:
|
*** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndexedSubscript:]: index 2 beyond bounds [0 .. 1]'
*** First throw call stack:
(0x199af6190 0x198ccb9f8 0x199a6fbfc 0x1999f4bfc 0x10024fb7c 0x1002928f8 0x10024cd98 0x10024e314 0x1a91320cc 0x1a9295744 0x1a94010b8 0x1a9022e38 0x1a91e28a8 0x1a90139a8 0x1a9016498 0x1a0cc8648 0x1a0cc8908 0x199a87f2c 0x199a87eac 0x199a87794 0x199a826d0 0x199a81fc4 0x19bc8379c 0x1c640ac38 0x10023a14c 0x1995428e0)
libc++abi.dylib: terminating with uncaught exception of type NSException
in
NSString *domain = command.arguments[2];
The text was updated successfully, but these errors were encountered: