Error receiving broadcast Intent

I'm getting an error in crashlytics logs

java.lang.RuntimeException: Error receiving broadcast Intent { flg=0x10 pkg=*** (has extras) } in$ReceiverDispatcher$Args.lambda$getRunnable$0$LoadedApk$ReceiverDispatcher$Args($$Lambda$LoadedApk$ReceiverDispatcher$Args$ Source:2) android.os.Handler.handleCallback( android.os.Handler.dispatchMessage( android.os.Looper.loop( java.lang.reflect.Method.invoke(Native Method)$

Using standard Google billing library subscriptions + in-app billing

I don't see in docs that I should register broadcast receiver, where PURCHASES_UPDATED come from?


  • The issue was an architectural issue, the billing client was initialized in some base Activity in onCreate, and there was a situation when purchase callback was triggered in few activities, and one of them was in illegal state.