diff --git a/library/src/main/java/com/queue_it/androidsdk/QueueActivity.java b/library/src/main/java/com/queue_it/androidsdk/QueueActivity.java index 9504370..5bf4bd2 100644 --- a/library/src/main/java/com/queue_it/androidsdk/QueueActivity.java +++ b/library/src/main/java/com/queue_it/androidsdk/QueueActivity.java @@ -226,8 +226,8 @@ private void broadcastChangedQueueUrl(String urlString) { } private void broadcastQueuePassed(String queueItToken) { - Intent intent = new Intent("on-queue-passed"); - intent.putExtra("queue-it-token-" + initAt, queueItToken); + Intent intent = new Intent("on-queue-passed-" + initAt); + intent.putExtra("queue-it-token", queueItToken); LocalBroadcastManager.getInstance(QueueActivity.this).sendBroadcast(intent); } diff --git a/library/src/main/java/com/queue_it/androidsdk/QueueITEngine.java b/library/src/main/java/com/queue_it/androidsdk/QueueITEngine.java index 67246ec..d6d3c5e 100644 --- a/library/src/main/java/com/queue_it/androidsdk/QueueITEngine.java +++ b/library/src/main/java/com/queue_it/androidsdk/QueueITEngine.java @@ -157,8 +157,8 @@ private void registerReceivers() LocalBroadcastManager.getInstance(_activity).registerReceiver(new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { - raiseQueuePassed(intent.getStringExtra("queue-it-token-" + initAt)); - }}, new IntentFilter("on-queue-passed")); + raiseQueuePassed(intent.getStringExtra("queue-it-token")); + }}, new IntentFilter("on-queue-passed-" + initAt)); LocalBroadcastManager.getInstance(_activity).registerReceiver(new BroadcastReceiver() { @Override