-
Notifications
You must be signed in to change notification settings - Fork 17
Description
I've successfully integrated the Android SDK into my app, and can use the Flic button to trigger actions in my app.
The only problem is that sometimes when I launch my app, button callbacks aren't called until after the app has been running for a few minutes. By adding breakpoints to FlicManager.java, I can see that onButtonSingleOrDoubleClickOrHold is called, but button.callbacks is empty. That means onButtonSingleOrDoubleClickOrHold in my FlicBroadcastReceiver subclass isn't called.
If I don't do anything, and wait a few minutes, eventually all the button presses I sent during that time will come through and onButtonSingleOrDoubleClickOrHold in my FlicBroadcastReceiver subclass will be called for each missed button press -- but the timeDiff is 0 for all those events, so I can't ignore them.
Other times when I launch the app, it behaves correctly right away. Have you seen this?
I'm using Android 8.1.0 and the latest version of the SDK downloaded yesterday.