User Tag List

Results 1 to 4 of 4

Thread: App not in foreground

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Nicholas Martin's Avatar
    Join Date
    Nov 2006
    Location
    Canada
    Posts
    203
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    App not in foreground

    I was wondering if there was a trigger to check if the app is in foreground or not for droid/ios? I want to send data to a server with the get object when the app is minimized, and then again when it has focus. Does anyone know how, or if this is possible? So far I got it to work when the app starts, and when it ends.

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module

    Join Date
    Jul 2006
    Location
    Lacey, WA
    Posts
    756
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not as far as I know. In my opinion this is a much needed feature, what if the user receives a phone call at a crucial moment in your game, and then returns to the game only to lose immediately? Our apps should be able to pause themselves automatically in events such as these!

  3. #3
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,784
    Mentioned
    298 Post(s)
    Tagged
    4 Thread(s)
    please to do so you need to add read_phone_state permission and it should be take care by OS

    remember if you expect this to happens uncheck "end when not in froeground" since this is the true behavior for phones

    and of course take care of the exit process via buttons
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    SoftWarewolf's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    941
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    What they are referring to is an event to detect this, i believe the admob object has this condition "on leave application" which should work.
    It would be great if the regular android object had these two conditions: "on application deactivated" and "on application reactivated", would that be possible?

    The ios object already have these two conditions.

    It would be great for a few things:
    - to make a manual pause button, so the user can click "resume" without jumping straight into the action unprepared when there is an interruption.
    - save and load certain values on a server with the get object, as op requested.
    - disconnect/reconnect from multiplayer games, (or set status to away etc).

Similar Threads

  1. Foreground Window Object
    By Jaffob in forum Released Extensions
    Replies: 1
    Last Post: 22nd December 2018, 10:16 PM
  2. [bug] when "end application when not in foreground" is unchecked - ad/link error
    By qenio in forum Android Export Module Version 2.0
    Replies: 0
    Last Post: 23rd April 2012, 03:55 PM
  3. Possible to blurr foreground?
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 11th February 2011, 04:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •