I have an app with two different versions (two different package names). One is a free version and the other is a paid version. Obviously the free version will always be installed before the paid version.
I want the free version to be able to detect when the paid version gets installed. I can't use a broadcast receiver with action.PACKAGE_ADDED
since that's not allowed in manifest anymore, meaning it cannot run in the background, it can only run when the app is open.