prebid / prebid-mobile-android

Prebid Mobile SDK for Android applications
Apache License 2.0
57 stars 82 forks source link

ANRs caused by SDK initialization #676

Closed justadreamer closed 1 year ago

justadreamer commented 1 year ago

Original Publisher Complaint

  1. In runtime, Play Store reports ANR in org.prebid.mobile.rendering.utils.helpers.AppInfoManager.initUserAgent. We don't see that in our testing. We start to see it when deploy to production. The call eventually call file system which causes ANR.

  2. There is a Preferences function call and JSLibraryManager call in main thread inside UserConsentManager. This results in ANR showing up every time when in strict policy mode.

To Reproduce

Only the second complaint seems to be reproduced under the strict policy mode. Although not sure this will be reproduced with the demo app, it might be that only with the publisher's app.

Remedy

These 3 changes should relieve apps from the ANRs during the initialization of the SDK.

Additional Context

affected devices, OS versions, etc.

to be provided

additional notes

to be provided