0

I am using Firebase cloud Messaging to show push notification but its not showing instead its not doing anything I have connected Firebase successfully with my application but now i am just Toasting the body of notification in onMessageRecieved

public void onMessageReceived(@NonNull RemoteMessage remoteMessage) {
            Toast.makeText(getApplicationContext(),remoteMessage.getNotification().getBody(),Toast.LENGTH_SHORT).show();
        }

This is my whole onMessageRecieved function but it is not toasting anything I have tried sending notification many times

0 Answers0