question

sreekant avatar image
sreekant asked ·

Getting two times message in broadcast receiver com.clover.sdk.employee.intent.action.ACTIVE_EMPLOYEE_CHANGED

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.



Clover Android SDKEmployees
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers

· Write an Answer

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community