logoutSDK()

This method records each time a user logs out. It is set to happen when the user clicks the Log Out option. This ensures the user is registered as logged out, maintaining security for both that user and any subsequent users on the same device.

To add the method

  1. Open your project.
  2. You can add this method anywhere, but we recommend that you open the controllers.js file in the js folder. controllers.js
  3. Add this method:
    window.plugins.hurreSDK.logoutSDK(
        successCallback,
        errorCallback
    )
    

Arguments

These are the arguments for the method.

  1. successCallback - The Success Callback function is called following a successful logout, and includes a success message.
  2. errorCallback - The Error Callback function is called in case of an error, and includes an error message.

Sample Code

window.plugins.hurreSDK.logoutSDK(
    function(data){
        //success callback function
    },
    function(err){
        //error callback function
    }
);

results matching ""

    No results matching ""