Samsung is moving closer to Google’s messaging ecosystem, as it prepares to phase out its own Messages app next year.