Expand my Community achievements bar.

SOLVED

How to block Landscape delivery for iOS

Avatar

Level 1

Hi All,

We have  a use case in our implementation where we have to block the delivery for IOS landscape orientation.

We have tried using below configuration but it works only for android and not for iOS:

Screen-Orientation.jpg

If anybody has worked on similar case or have any idea about how to configure this please let me know and it would be a great help.

Thanks

Pranav

1 Accepted Solution

Avatar

Correct answer by
Level 3

I am redirecting to https://www.citibank.com.au/servererror.html  

Can you check if screenOrientation parameter is firing with mbox call on given page?
Also screenOrientation  seems to be an custom mbox parameter so mbox implementation should be in such a way that when you toggle the mode the target call should fire with the exact screenOrientation then only target would identify and deliver the experience.

View solution in original post

4 Replies

Avatar

Employee

Hi pranavk0102​,

Thanks for reaching out. Not sure if others have an alternate solution, however I'm curious to understand why the screenOrientation is not working as expected. Are you testing in a mobile app or a browser on iOS? Do you have a URL I could test?

Thanks!

Avatar

Level 1

Hi Surbhi,

We are testing it on browser for both android and iOS.

Below is the URL we are testing:

https://www.citibank.com.au/AUGCB/apfa/augcb/ocmff/LandingPage.do?sourceCode=M7FQF1A1&layout=standar...

We have build a form based experience and we wanted to do following things:

1) We would like to block landscape delivery for android mobile devices but this screen orientation things just don’t work at all(not for android neither for iOS).

2) Also we would like to exclude few mobile android devices from delivery and for that if we are using device model doesn’t matches ‘model number’ that too doesn’t work. for ex Samsung devices.

Can you please help us here !

Regards,

Pranav

Avatar

Correct answer by
Level 3

I am redirecting to https://www.citibank.com.au/servererror.html  

Can you check if screenOrientation parameter is firing with mbox call on given page?
Also screenOrientation  seems to be an custom mbox parameter so mbox implementation should be in such a way that when you toggle the mode the target call should fire with the exact screenOrientation then only target would identify and deliver the experience.

Avatar

Level 3

I have tested this in my sandbox environment, you can write an offer code using  media query for portrait and landscape and define experience for respective mode.