Calling function in another app

Calling function in another app

I have 2 applications in our account. I want to call function1 in app1 from app2. I have tried to create a function and use the following code:

myvar = app1.function1();

But I just get "not able to find 'function1' function. I've tried with the function in both the default and a custom namespace and various combinations of the namespaces in the attempt to call the function.

I do not get 'app1' showing up in auto-complete, which suggests to me that the issue is in permissions or something for the app itself. Is there some setup I need to do to export the function, or the app, to make app1 available from app2?