...
Note |
---|
The calls that support Pulsar native screen interaction need to know that you will only see the response when the native screen is dismissed by the user. For example, if your code calls |
refreshLogin
Note |
---|
The The optional "logout" parameter, when specified, will forcefully logout the user from salesforce, and return the user to the Pulsar login screen, forcing them to login to continue using Pulsar. The user will lose any work that is not saved to the database when this occurs. |
Code Block |
---|
var request = {
"type" : "refreshLogin",
"data" : {
"logout" : 0 // this is a number- default is 0, and a positive value will forcefully logout the user
}
};
bridge.sendRequest(request, function (responseData) {
if ((responseData.type == 'refreshLoginResponse') {
alert('login success');
} else {
alert('An error occurred or the login failed: ' + responseData.data);
}
}); |
setLeavePageMessage
Note |
---|
The |
...