rex_firebase_singleLogin
Plugin, ACE table, Discussion thread
Dependence: rex_firebase_apiV3
Dependence: rex_firebase_apiV3
Introduction
Test if user account had been logined on one client only.
Test if user account had been logined on one client only.
Usage
Sample capx, sample capx-V3
Sample capx, sample capx-V3
Kick mode
Set property "Kick mode" to kick previous or current login while multiple login detected to keep only one device could login, or do nothing.
Set property "Kick mode" to kick previous or current login while multiple login detected to keep only one device could login, or do nothing.
Try login
Call "Action:Login" to do login testing with userID. "Condition:On success" will be triggered if this userID had not been logging yet.
Otherwise "Condition:On kicked" will be triggered if current login had been kicked, when the property "Kick mode" is set to "Kick previous", or "Kick current".
Call "Action:Login" to do login testing with userID. "Condition:On success" will be triggered if this userID had not been logging yet.
Otherwise "Condition:On kicked" will be triggered if current login had been kicked, when the property "Kick mode" is set to "Kick previous", or "Kick current".
Logging out
Disconnection or call "Action:Logging out" will logging out, i.e. userID is not online anymore.
Disconnection or call "Action:Logging out" will logging out, i.e. userID is not online anymore.
Retrieve login list
Each login will register it's login timestamp, or remove this information when logging out, or disconnected.
"Condition:On login list changed" when the login list had been changed. Uses "Condition:For each login" to retrieve each login timestamp by "Expression:CurLoginTimestamp", and "Expression:CurLoginIndex" for current index in this login list.
Each login will register it's login timestamp, or remove this information when logging out, or disconnected.
"Condition:On login list changed" when the login list had been changed. Uses "Condition:For each login" to retrieve each login timestamp by "Expression:CurLoginTimestamp", and "Expression:CurLoginIndex" for current index in this login list.
Kick other login
Call "Action:Kick by index" to kick a login by index, "Condition:On kicked" will be triggered at kicked client.
Call "Action:Kick by index" to kick a login by index, "Condition:On kicked" will be triggered at kicked client.
Logging out
This plugin will not log out from rex_firebase_authentication directly. Add "Action:Logging out" (rex_firebase_authentication) under "Condition:On kicked" to log out authentication.
This plugin will not log out from rex_firebase_authentication directly. Add "Action:Logging out" (rex_firebase_authentication) under "Condition:On kicked" to log out authentication.