It might be possible in some way, but it might not be the most optimal solution.
I'd recommend using a loosely coupled API which doesn't expose Pulsar to Android clients.
One possible way of achieving this is creating a Spring Boot application that uses the Spring Pulsar support to interact with Pulsar.
You can expose a REST API for your use cases. It's a few lines of code to do this in Spring Boot.
It's easy to add proper security with Spring Security.
Lari Hotari
06/07/2023, 4:32 PM
There's a recent recording "Introducing Spring for Pulsar" by the awesome @Soby Chacko and @Chris Bono: