Hi All,
I'm in the process of developing a landing page for a campaign and the form is not submitting on Safari in iOS. Here is the page in question:
I realize it's a weird use case as our form only has one field (email) that is hidden, but this form has submitted fine on every other browser I've tested.
Any ideas why this may be happening?
iOS 9? Just checking before I debug.
I tested on iOS 9, iPhone 6 and it submits ok:
CrossBrowserTesting Video - iOS 9, iPhone 6 Plus
Need some more data on failing environment.
Thanks for the help Sanford! I'm only seeing this on iOS 10.2, iPhone 7. My co-worker had the same issue on his iPhone 6, also iOS 10.2 so I'm assuming it has to do with that.
OK, I'll check it in a few mins.
I have a 10.0 simulator and it works there:
Maybe something changed between 10.0 and 10.2? I'd to upgrade XCode, which I'm loath to do.
On iOS10.2 Safari has some errors when loading submitting this page
System.log
Jan 20 12:40:08 com.apple.WebKit.Networking[10378]: [] nw_host_stats_add_src recv too small, received 24, expected 28
Jan 20 12:40:08 --- last message repeated 3 times ---
Jan 20 12:40:08 com.apple.WebKit.Networking[10378]: [] __nwlog_err_simulate_crash simulate crash already simulated "nw_socket_set_common_sockopts setsockopt SO_NOAPNFALLBK failed: [42] Protocol not available"
Jan 20 12:40:08 com.apple.WebKit.Networking[10378]: [] nw_socket_set_common_sockopts setsockopt SO_NOAPNFALLBK failed: [42] Protocol not available, dumping backtrace:
[x86_64] libnetcore-856.30.16
0 libsystem_network.dylib 0x0000000107605666 __nw_create_backtrace_string + 123
1 libnetwork.dylib 0x00000001078e3006 nw_socket_add_input_handler + 3164
2 libnetwork.dylib 0x00000001078c0555 nw_endpoint_flow_attach_protocols + 3768
3 libnetwork.dylib 0x00000001078bf572 nw_endpoint_flow_setup_socket + 563
4 libnetwork.dylib 0x00000001078be298 -[NWConcrete_nw_endpoint_flow startWithHandler:] + 2612
5 libnetwork.dylib 0x00000001078d9ae1 nw_endpoint_handler_path_change + 1261
6 libnetwork.dylib 0x00000001078d9510 nw_endpoint_handler_start + 570
7 libnetwork.dylib 0x00000001078f11f9 nw_endpoint_resolver_start_next_child + 2240
8 libdispatch.dylib 0x0000
Jan 20 12:40:09 assertiond[8896]: Could not create or rename power assertion for <BKNewProcess: 0x7fce81f0b910; com.apple.mobilesafari; pid: 10377; hostpid: -1>: 0xe00002c9
On iOS9.2 nothing
That's underlyng socket stuff, though, should be unrelated to the form submission unless there's a really tragic socket-level error on Marketo's servers. Are you also seeing the form not submit (should go to Conor's follow up /articles/looking-back-year-trend-reversals)?
Form submitting is done. Safari UIWebView WkWebView shows "looking-back-year-trend-reversals" page.
I don't know this error relate to submitting issue...
iOS10.1 Socket Error
iOS10.2 Socket Error
iOS10.0 OK
iOS9.3 OK
That's definitely interesting. Could be a bug in Safari's (Webkit) network library. But if it doesn't interrupt the form submission it seems like a different issue.
I have a box I'm upgrading to Xcode 8.2.1 because I'm curious about this. I'll post back with the 10.2 simulator results in a bit (have no live 10.2 devices to debug).