Page 1 of 1

pui.start Initial Program

Posted: Tue Aug 12, 2014 7:42 am
by negley
When using the pui.start() function in JS, the users assigned initial program is called after signin. Would it be possible to redirect everyone to be redirect to the same initial program?

I am creating a phone gap app and use the pui.start() to kick off the program. I would like to use the mobile initial program if possible.

Does pui.start() have any settings within the call?

-Bill

Re: pui.start Initial Program

Posted: Tue Aug 12, 2014 9:26 am
by Scott Klement
No, there are no settings for pui.start(). It always uses the user's "initial program" that you can set in the "Launch" menu of the designer.

If you want to use the initial mobile program, use pui.run like this:

Code: Select all

pui.run({ "mobile": true });
Or if you want to pass one parameter to the initial mobile program (like the PUI mobile client does)

Code: Select all

paramData = "data to pass as parameter goes here";
pui.run({ "mobile": true, "parameter": paramData });