-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
display issue in landscape orientation on iOS #11547
Comments
If the supported orientation of the iOS project is set to portrait, the ads can be display as expected. |
We can't provide support for thirdparty modules. Until it's establish that it would be an engine issue, you should report bugs experienced with the admob module to its developers. If they can confirm that they are doing everything right and that the issue is in Godot, then they can open a bug report here. |
I reported this issue to google admob group, and they replied: Thanks for providing me the requested information. However, I'm afraid that we do not support any third-party platforms and/or plugins in this forum (such as "Godot") and we will not be able to guarantee that everything will be working as intended. I would recommend you reach out to the support team of the platform/plugin you are using for further assistance on this. Regards, |
The module is implemented by myself, and the code for load and show the interstitial is quite common. |
I contact the Admob SDK developer and ask them to review my module code: Hi there, I looked through your implementation and I didn't notice anything suspicious from our perspective, and the code implementation seems to be straightforward. Although I noticed that you seem to be using the Application's Root ViewController to present your Interstitial Ads and not the current ViewController. You can check out on where to appropriately display the Interstitial Ad from our official documentation. As previously mentioned, it would be best for you to contact the support team of the platform you are using for further assistance as they are out of scope for our support. Regards, |
I was not telling you to get in touch with the Admob SDK developers, but with those who developed the Admob module you are using. There is no Admob integration in Godot, so you must have included it from a thirdparty. Since you didn't provide any information about the module you're using, we can't help you. |
The module code is quite straightforward. |
It would have been useful to mention in the first place that you are the module developer.. |
Because I thought the module code related to load and show the interstitial is nothing more than the demo code from the official documents, it's not important. |
Isn't that a duplicate of #11628 then ? (Which is more explicit) |
absolutely different issues. #11628 is only happen on the iOS 11, and the content of game itself displayed incorrectly. |
really lots of issues after upgrade to iOS 11. |
Is any contributor taking care of this issue? |
I know nothing of iOS (or OSx and Objective C), but the only thing related to their comment which I could find is: godot/platform/iphone/app_delegate.mm Lines 91 to 93 in c5ab18f
Not sure if it would help though :[ |
UIViewController *rootViewController = (ViewController *)((AppDelegate *)[[UIApplication sharedApplication] delegate]).window.rootViewController; UIViewController *rootViewController = [AppDelegate getViewController]; This result is the same. It's just get the root view controller. |
It happens when only landscape left and landscape right is enabled for the device orientation,if portrait is also enabled, it will show correctly. |
Maybe @BastiaanOlij or @endragor can help with this one and #11628. |
Haven't done too much with this in iOS 11, I've locked my projects in landscape mode because you don't want this sort of rotation for AR, Apple does some weird stuff. When I did accelerometer and gyro code I did spend some time making sure it worked correctly with auto rotation but that was purely in detecting what the rotation was. Wish I knew more about this to actually give some worth while advise. |
This issue happens even if locked the project orientation to landscape. |
What did you modified? |
@alexzheng Can you still reproduce this bug in Godot 3.2.1 or 3.2.2beta4? |
no |
Closing as fixed then. |
Operating system or device, Godot version, GPU Model and driver (if graphics related):
2.1
iOS
Issue description:
Just display an Admob interstitial ad in a game in landscape
the ads can not be displayed correctly.
Steps to reproduce:
This is the code in the module that add the interstitial to the root view :
UIViewController *rootViewController = (ViewController *)((AppDelegate *)[[UIApplication sharedApplication] delegate]).window.rootViewController;
[interstitial presentFromRootViewController:rootViewController];
Link to minimal example project:
The text was updated successfully, but these errors were encountered: