Shin-NiL / Godot-Android-Admob-Plugin

Android AdMob plugin for Godot Game Engine 3.2 or higher
MIT License
543 stars 66 forks source link

No more ads after turn off and on wi-fi and 4G #213

Closed orah29 closed 1 year ago

orah29 commented 1 year ago

Godot version: 3.4.5 AdMob Plugin version: 6.1.1 Issue description:

the plugin works well on my android phone until I turn off and then on wi-fi and 4G. After that there is no more ads

onready var _retry_connection := $RetryConnection # is a one shot timer

func _on_AdMob_interstitial_failed_to_load(_error_code) -> void: _interstitial_failed_to_load = true _retry_connection.start()

func _on_AdMob_interstitial_loaded(): _interstitial_failed_to_load = false

func _on_RetryConnection_timeout(): if _interstitial_failed_to_load: admob.init() admob.load_interstitial()