Class: GDTokenHelper

GDTokenHelper()

The GDTokenHelper is used to request token from server side and process callback on response

Methods

getGDAuthToken(challenge, serverName, onSuccess, onError)

Call this function to check if it is currently possible to open an app using an url scheme
Parameters:
Name Type Description
challenge string string for the authorization
serverName string string for the server name
onSuccess function Callback function to invoke when the function returns successfully.
onError function Callback function to invoke for error conditions.
Source:
Example
window.plugins.GDTokenHelper.getGDAuthToken("test", "serverName",
    function(result) {
        alert("Retrieved Application details " + result);
    },
    function(result) {
        alert("Api not supported on emulated devices: " + result);
    }
);