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?
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.
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).
Tested on the 10.2 sim and it still submits:
So far, this is impossible to reproduce. Any other information would be helpful.
You guys are awesome. I really appreciate your efforts. Here's exactly what I'm seeing:
If there is anything else I can provide, please let me know. I'm sorry I don't have anything more technical, but this is all above my level of understanding.
Hi Guys,
Just an update - I cleared my cache and cookies on Safari and the form now submits. Just worried that the form could fail for some our returning visitors.
I did test with a known lead with the same correct result. I dunno, but I don't see anything out of the ordinary in the form behaviors (no special API JS). Be happy to look into it more if you see it again.
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.
OK, I'll check it in a few mins.
iOS 9? Just checking before I debug.