What is the best approach for remote data fetching?

0 favourites
  • 7 posts
From the Asset Store
Best car suspension with spring effect and very cool terrain generation.
  • Hello,

    I am trying to build small app that would require to load data (immages and titles) from my own server.

    it shud be done auto during the night time or (if app is turned off) upon starting the app.

    Can more expirienced in this matter point me to the right direction?

    Maybe some plugins that might help?


  • From what your saying, you expect the application to update some content, during the night ?

    You realize that the app has to be active and running to perform actions etc ?

    It will not start automatically.

    I would use some ajax to update content.

    If its game updates you want to apply, and have it in the google play store ... then simply updating your package in the google play store will initiate the updating automatically when users are connected to the internet.

  • lennaert

    Thank you for answering...

    So if app is open but minimized (not turned off) it wont be able to run scheduled task?

    How then, for instance, facebook gets new posts even its minimized?

    when i open it, it allready has all new posts...

  • I thought that the construct 2 applications halted/paused when minimized.

    The facebook apps are different from construct 2, those apps are written in native code.

  • Ashley

    Sorry to bother you but, is that correct? ...App written i C2 can't run some task in background while minimised?

  • It's by design - I can't think of many reasons you'd need to update in the background and couldn't do that upon waking up, especially given C2 is mainly a game engine. Also if you do too much work in the background you'll drain the device battery and annoy users.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • oh, thats bad news...

    theres a situation where it might get like hundred of new images and updating and downloading might take some time... so i thought that it would be great for update to be done during night time and that user gets notification in morning and can just open app and imidiatly take a look at it.

    ...i guess that i must live with this limitation...

    Anyway, back to the topic at hand, does anyone has any pointers for me? ...what approach might be the best or any good plugins to recommend?


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