Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to observe for events on different threads? #61

Open
danibachar opened this issue Oct 28, 2020 · 1 comment
Open

Is there a way to observe for events on different threads? #61

danibachar opened this issue Oct 28, 2020 · 1 comment

Comments

@danibachar
Copy link

danibachar commented Oct 28, 2020

It seems that the SDK forces the EPXProximityZone callback i.e @property(nonatomic, copy, readwrite, nullable) void (^onEnter)(EPXProximityZoneContext *zoneContext); and the others to be called back on the main thread.
In cases where there are a lot of beacons near by this causes heavy usage on the app and in some cases, it's getting totally stuck ...
From stack tracing it seems like Estimote SDK does most of the work on it's own thread com.estimote.EBSUniversalScanner.defaultQueue but then dispatch it back on to the main thread...
I wish one of the two will happen:

  1. The callback would come back on the thread it was registered to
  2. I could inject/supply a queue which I'd like my EPXProximityZones to be observed on

Maybe there is such a case and I'm missing something?
And also why is EPXProximityZone introduce the usage of UIKit is there a reason?

@sdetweil
Copy link

has this been addressed? my app will NEVER be on the UI thread when calling the sdk. This is Ionic Vue based.

I see this in the device log

Main Thread Checker: UI API called on a background thread: -[UIApplication applicationState]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants