Make sure that all native methods are public and clear badge each time when enter foreground