ligi / SnackEngage

Engage Users with a Snackbar to e.g. rate or translate the app
MIT License
62 stars 12 forks source link

Multiple Snacks with same condition #8

Closed ertanden closed 8 years ago

ertanden commented 8 years ago

I have multiple snacks with same conditions.

The condition I apply for both snacks are AfterNumberOfOpportunities(3).

In this case always the first snack defined in the builder is shown and I never see the second snack shown.

What I expect is in the 4th opportunity show first snack, then in the 5th opportunity show second snack, since condition 5 > 3 is true.

I believe this problem occurs because in SnackStats class the method getLastSnackShow() returns generic value, instead of "per Snack" values which is defined by the KEY_LAST_SNACK_SHOW + the Snack unique id.

I hope I was clear.

ligi commented 8 years ago

will release 0.6 which supports this use-case soon to jitpack - keep in mind that both snacks need to have a differen id