Control gravity device tilt NOT WORKING IOS IFRAME

iframe

#1

Hi everybody,
As in the title I have a trouble making work the gravity control using device tilt in iframe.
This happens only in ios web, it’s working fine in android web/inapp, and ios inapp.

Can someone help me?
Thanks :slight_smile:


#2

This should work if the embedded document is hosted on the same domain as the parent frame – is that true? Can you share a test URL?


#3

Yes, it works on the same domain, but we make advertising and show it on different domains. We solve this issue with javascript handlers by adding listener on ‘message’ event and use postMessage method of iframe, but we can’t change Hype core to listen message instead of deviceorientation.