1. *** New version of B4J is available ***
    B4J v7.8
    Dismiss Notice

iOS Question How to bring app to foreground

Discussion in 'iOS Questions' started by rfresh, May 14, 2019.

  1. rfresh

    rfresh Well-Known Member Licensed User

    I'm running a Clock and need to bring my app to the foreground when the time is up.

    I found this code below (from Erel) but I am getting a msg asking if I am missing a library reference. I don't see these in the list of libraries.

    Code:
    Dim Intent1 As Intent
        
    Dim pm As PackageManager

    Intent1 = pm.GetApplicationIntent (myapps.package.name)
    StartActivity (Intent1)
     
  2. klaus

    klaus Expert Licensed User

    Are you sure that the code is for B4i?
    For me it's B4A code.
    PackageManager is part of the B4A Phone library.
    StartActivity (Intent1) doesn't exist in B4i.
    Sorry, but I have no answer to your question.
     
  3. rfresh

    rfresh Well-Known Member Licensed User

    You are right Klaus and I made the mistake when I was reading that post where I got the code. I thought it was an iOS post but I'm sure you are correct.

    Maybe someone can jump in and answer my question: in iOS how to bring an app to the foreground.
     
    Last edited: May 15, 2019
  4. Erel

    Erel Administrator Staff Member Licensed User

    It is impossible.

    The best you can do is to show a notification.
     
  5. rfresh

    rfresh Well-Known Member Licensed User

    OK thanks Erel...
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice