Hi ,
I have used a broadcast receiver to get the employee login or logout event for my application.
manifest file
<receiver android:name="com.bluepumpsoftware.receiver.CloverEmployeeChangeReceiver" android:exported="true" tools:ignore="ExportedReceiver"> <intent-filter> <action android:name="com.clover.sdk.employee.intent.action.ACTIVE_EMPLOYEE_CHANGED" /> </intent-filter> </receiver>
Broadcast Receiver
public class CloverEmployeeChangeReceiver extends BroadcastReceiver { @Override public void onReceive(final Context context, Intent intent) { BPS_Logger.e("CloverEmployeeChangeReceiver ", "Employee changed"); BPS_Logger.d("START_PIN", "CloverEmployeeChangeReceiver Action: " + intent.getAction()); } }
Problem is: when i am using below to logout
EmployeeConnector().logout(new EmployeeConnector.EmployeeCallback<Void>());
Then default passcode screen open and receiving two times below event in broadcast receiver.
Intent Action name received: com.clover.sdk.employee.intent.action.ACTIVE_EMPLOYEE_CHANGED
Why it is happening, we expect only one time response.