Log Out Device

 

The following API call is available in Android FCM SDK v6.0.7 and later. For iOS SDK v6.0.3 and later.

Log Out method within your app enable the user to receive or not receive push notification like an anonymous user.

For example, if you use false for the second parameter your user won't receive a push notification until the user logs in again. If you use true for the second parameter your user will receive a push notification despite being logged out.



Call to logged out user and enable push notification. 

[[Appoxee shared] logoutWithOptin:YES];
Appoxee.shared()?.logout(withOptin: true)
@Deprecated("Context is no more needed.") Appoxee.instance().logOut(getApplication(), true);

Pay attention after this call the user is logged out but he/she still can receive a push notification.

 

Call to logged out user and disable push notification. 

Pay attention after this call the user is logged out and he/she can't receive a push notification anymore.

 

 

 

Log out provides the ability to user receive or not receive a push notification after logging out from the application.