-
Notifications
You must be signed in to change notification settings - Fork 100
[Bug]: ANR Card.logImpression #266
Description
Braze Android SDK Version
23.2.1
Steps To Reproduce
Card.logImpression is causing the ANR when performed on the main thread.
Expected Behavior
NO ANRs or documentation on which thread shall we use to perform such operation
Actual Incorrect Behavior
It's causing an ANR
main (waiting):tid=1 systid=3971
at jdk.internal.misc.Unsafe.park(Native method)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:211)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:715)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:938)
at java.util.concurrent.locks.ReentrantLock$Sync.lock(ReentrantLock.java:153)
at java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:322)
at bo.app.p.a(SourceFile:10)
at com.appboy.models.cards.Card.logImpression(SourceFile:5)
Verbose Logs
No response
Additional Information
Are we supposed to execure Card.logImpression on the UI thread?