I came across an issue with a Sitecore video player component internally I was using Brightcove service, which would display an image with a play icon. jQuery click event was used to show the html 5 player and play the video although its Brightcove. The click event worked in desktop and android devices but not on Apple devices(iPad and iPhone). First I took the route of debugging the device by connecting it to laptop. Did you know you can debug the webpage rendered on a apple device from Chrome debugger tool with help of NodeJs. I have left the link in the end of this post. I later realized that wasnt much of a help with showing the event that were tagged for an element. Finally came across a comment in a stackoverflow which was eventually the fix but it wasn't an answer though. I decided to put all the possible fixes in a post that could save someone in future.
jQuery click event will not work on Apple devices(iPhone, iPad).
Does it work on other devices (desktop,Android) probally the answer is yes proceed to next step.
Set the cursor style of the element to cursor. Might sound weird but it has worked for a lot of people.
Did the cursor resolve the issue? If not lets move to the next option.
Add an blank onClick="" event attribute to the element. This is an IOS Safari bug. Did this work ? if not lets try the next option.
Do you have a video embed item hidden behind the div that you are trying to tag an event?
The html video element likes to consume all the events and doesn't propagate or bubble the events even though the z-index is below div.
The video element display has to be set to none thats the trick.
Last Option worked well for me since I had an Video element behind the div which was causing the issue. Hope this helps.
Note: I followed this post to debug iPhone on a windows pc with chrome.
If the above link didnt help follow this link to help setup
Subscribe to Bala Blog (bala.one) | Sitecore MVP | Sitecore | Coveo | SharePoint | O365
Get the latest posts delivered right to your inbox