Results 1 to 7 of 7
  1.    #1  
    Hi, I'm trying to use Govnah API, but it doesn't work, govnah launches but stays on the glowing icon. I'm using the following code to change profile settings

    Code:
    this.controller.serviceRequest
    (
    	'palm://com.palm.applicationManager',
    	{
    		method: 'launch',
    		parameters:
    		{
    			id: 'org.webosinternals.govnah',
    			params:
    			{
    				type: 'set-profile',
    				profilename: "Profile 20"
    			}
    		}
    	}
    );
    I have indeed created "Profile 20" in Govnah. What's wrong ?

    Thanks for answers !
  2. #2  
    Oh yeah, palm changed it to where apps launched always spawn a card even when its only going to do background processing.

    We switched to a service request to the org.webosinternals.govnah which launches the app (which doesn't spawn an empty card.)
  3. #4  
    Typing this from memory, so may it require some debugging:

    Code:
    this.controller.serviceRequest
    (
    	'palm://org.webosinternals.govnah',
    	{
    		method: 'getProfiles',
    		parameters:
    		{
    			returnid: 'my.app.id'
    		}
    	}
    );
    This will relaunch your app (replace returnid) with these parameters:
    Code:
    {
    	type: 'govnah-profiles',
    	profiles: [{id: 1, name: 'Palm Default'}, {...}, ...]
    }
    Then this to set the profile:
    Code:
    this.controller.serviceRequest
    (
    	'palm://org.webosinternals.govnah',
    	{
    		method: 'setProfile',
    		parameters:
    		{
    			profileid: 1
    		}
    	}
    );
    (only supports profileid, so you need to use getProfiles first to get the id.)
  4.    #5  
    Nice, it's working if only govnah is already launched,
  5. #6  
    It should work without it needing to be running. It works for modeswitcher.
  6.    #7  
    ok, it's working fine now.

Posting Permissions