unregister

fun unregister(context: Context, account: UserAccount?, isLastAccount: Boolean)

Performs SFDC un-registration from push notifications for the specified user account. Performs GCM un-registration only if this is the last account being logged out.

Parameters

context

Context.

account

User account.

isLastAccount

True - if this is the last logged in account, False - otherwise.