fix notification issue: no notification to user, and not unregister user after app stopped.