iOS Question How to bring app to foreground


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.

    Dim Intent1 As Intent
    Dim pm As PackageManager

Intent1 = pm.GetApplicationIntent (
StartActivity (Intent1)


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.


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: