android - BroadCast Receiver unregistered in OnPause result in listening issue to fcm notification -
i'm trying create chatting app using fcm notification. once notification comes send broadcast request can used notify recyclerview. @ stage working well.
but situation, when receiver got unregister within onpause method recyclerview not getting notified. latest comment doesn't appear in recyclerview.
so question how can tackle such scenario when receiver getting unregistered automatically screen lock or dialog appears nothing.
if problem you're missing data after onpause executes, solution refresh data in onresume.
Comments
Post a Comment