Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Crash during admob.hide()
Started by wesley78 Jun 19 2018 06:36 PM

- - - - -
2 replies to this topic
admob coronasdk
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

wesley78

[GLOBAL: userInfoPane.html]
wesley78
  • Observer

  • 5 posts
  • Corona SDK

Dear CoronaSDK team,

 

I am having a problem with my app in that when the user rapidly taps the play button over and over again, the game crashes when hiding the advertisement using

admob.hide() 

Here is a video of the crash occurring: https://youtu.be/UgMgdi1AwrQ

Below is the error message that I receive in the CoronaSDK console.  How can I resolve this issue?

 

[Device] Task <C80F5E1C-6B0A-4E7C-853F-5B9A9264D738>.<0> sent request, body N
[Device] *** Terminating app due to uncaught exception 'NSGenericException', reason: 'Unable to activate constraint with anchors <NSLayoutXAxisAnchor:0x1c066d7c0 "GADBannerView:0x100f18a40.centerX"> and <NSLayoutXAxisAnchor:0x1c047ce00 "UILayoutGuide:0x1c01b1800'UIViewSafeAreaLayoutGuide'.centerX"> because they have no common ancestor.  Does the constraint or its anchors reference items in different view hierarchies?  That's illegal.'
 
Sincerely,
Wes


[TOPIC: post.html]
#2

wesley78

[GLOBAL: userInfoPane.html]
wesley78
  • Observer

  • 5 posts
  • Corona SDK

[TOPIC: post.html]
#3

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,788 posts
  • Enterprise

If it happens when clicking buttons too fast, you can set a flag that blocks additional presses of the play button until its valid to press the play button again.

 

Rob




[topic_controls]
[/topic_controls]