This is a pretty well-documented issue at this point, and a lot of people have butted their heads against it.
Barring any obvious javascript errors (unlikely given that you’re using the examples), it’s almost guaranteed you’re seeing this problem.
Turns out the configure-ap
HTTP request is sometimes sent by the browser as two packets, but the Photon’s internal web server can only handle single-packet transmissions.
The end result is everything up to the configure-ap
step works, and then it fails silently.
This is most common, it seems, on iOS devices followed by Safari on Mac.
This is a firmware bug, not a JS bug. AFAIK there is no real satisfactory fix but I think what we’ll probably see sometime in the near future is (hopefully) an implementation of the configure-ap
step which uses a different HTTP verb to avoid packet fragmentation as a stop-gap solution (until WICED gets their shit sorted).
See also: