BUGStudio
Hey,
In Xcode, I Opened the C2runtime.js file and change the Line starts as “this.isiPhoneX = this.isiPhone & & " as per you said to this :-
this.isiPhoneX = this.isiPhone && screenWidth === 1125 || screenWidth === 750 || screenWidth = = 828 || screenWidth = = = 1125 || screenWidth = = = 1242 && screenHeight = = = 2436 || screenHeight = = = 1624 || screenHeight = = = = 2436 | screenHeight = = = = 1792| screenHeight = = = = 2688; | slightly unpleasant test for iPhone x
(But there is nothing displaying in the simulator on all IOS devices but full black screen appears and the game doesn’t run.)
So I tried to change the line with this :-
this.isiPhoneX = this.isiPhone && screenWidth === 1125 && screenHeight === 2436 || screenWidth === 750; screenHeight === 1624 || screenWidth === 828; screenHeight === 2436; screenWidth === 1125 && screenHeight === 1792; screenWidth === 1242 && screenHeight === 2688; // slightly unpleasant test for iPhoneX
(There is no change the device seems to show black bars on the right side of it.)
And by applying iPhone XR screen resolution :-
this.isiPhoneX = this.isiPhone && screenWidth === 1792 && screenHeight === 828; // slightly unpleasant test for iPhone X
(shows black bar on the right side of the device).
Please help me out of this issue.