Message to multiple clients will not work as expected with route.all-resources property

Not out of the box usually. XMPP is rather old and was created when using multiple devices wasn’t a thing (long before Apple created iMessage or Google Talk appeared). There is a XEP “Message Carbons” for that though, but not many clients support it. Openfire server supports it, so you need a capable client (like Conversations, Gajim, etc.). You will have to add support for that to your custom client then. And even if you do, this will only work when both clients are online. If one of them is offline, it won’t get messages sent on another client to its history. It won’t store history centrally for every client to retrieve. Another option is Message Archive Management, but it is even more experimental and even less support exists for it. Explanation: message synchronization between clients