adding checking for activity and package for native apps as well