Detect come from background for Facebook Instant Games

147 Views Asked by At

I'm building an idle game and wondering if there's anyway to know when a player returns to the game from background (without relaunching the game)? After browsing through APIs, I only found the onPause event but not resuming.

Thank you! Mars

1

There are 1 best solutions below

0
On

I couldn't find any solution through the official Facebook API. But if you are using Cocos Creator then you can listen to cc.game events.