How do I make an app run in background?

0 favourites
  • 10 posts
From the Asset Store
Full game Construct 2 and Construct 3 to post on Google Play
  • Hi

    I would like to make a tamagotchi style game for android but my problem is that the app gets paused when it's not active. That means that I can't trigger events every X minutes. Is there a way to make sure the app is still running even if it's in background?

    Thank you

  • This gets asked a lot and unfortunately you can't do it. It's possible to do something with variables/time to compare how long has passed since you closed it but other than that it will just be suspended.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thank you for your reply, but what about apps like Viber? I get notifications (with sound) even if my screen is locked...

  • We actually have those features in the Construct Master Collection. Although, since this is funded by the supporters, so it's not free.

    You are looking for the Mobile Background plugin.

    You can take a look here, if you want:

    construct.net/en/forum/construct-3/plugin-sdk-10/construct-master-collection-en-139046

  • 's reply.

    This gets asked a lot and unfortunately you can't do it. It's possible to do something with variables/time to compare how long has passed since you closed it but other than that it will just be suspended.

    Yeah, you can compare the time and date rather than make your game run in the background to save power like how most apps do.

  • I believe this is what you meant by in-background notifications with sounds even when locked seen on messaging apps like Viber.

  • Yeah that will be Push Notifications usually based on something ready in the app or a 24 hour delay. I've used Urban Airship before where you can send Push to users whenever you want.

    ooo you have plugins to do this that's nice, there is some hope then for people who keep asking this question ^^

  • Yeah that will be Push Notifications usually based on something ready in the app or a 24 hour delay. I've used Urban Airship before where you can send Push to users whenever you want.

    Yep. Although, you still have many other options in the plugin.

  • Dam they look well worth the $100, good stuff :) What does 'Mobile Sleep' do? Maybe that resolves some problem OP is having.

  • The Master Collection looks amazing :) My problem is I would only like the mobile part of it. As far as I can tell it's not possible to buy just one part. But is it perhaps possible to split the Master Collection to different accounts? For example, I get the Mobile Master and a friend of mine gets everything else.

    Thank you

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)