In this paper exact solutions of the Duffin–Kemmer–Petiau (DKP) equation are obtained for a two-dimensional curved spacetime plus a constant electric field. Based on the solutions we discuss the current density of a spin-1 particle by considering the Gordon decomposition of the current. We also investigate the harmonic oscillator behaviour of vector bosons and their quantized momentum spectra for this cosmology.