How to push application to background?

I need to push this application to background when user hits back or home. Please help

import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';
import { StreamingMedia, StreamingAudioOptions } from '@ionic-native/streaming-media';
import { BackgroundMode } from '@ionic-native/background-mode';
var audioUrl: URL

  selector: 'page-home',
  templateUrl: 'home.html',
  providers: [
export class HomePage {
  audioUrl = new URL(this.mp3)
  constructor(private streamingMedia: StreamingMedia, private backgroundMode: BackgroundMode) {

  startAudio() {
    let options: StreamingAudioOptions = {
    successCallback: () => { console.log('Finished Audio')},
    errorCallback: (e) => { console.log('Error: ', e)},
  this.streamingMedia.playAudio(`${audioUrl.href.toString()}`, options);


Isn’t it normal behaviour that the app goes to background on Home?
Also, is it really possible to put an app into background when doing something in an app?

(You are talking about Android, right?)

Yes, I’m talking about Android. The app streams audio file from a web server. So it opens a native player within itself to play the audio file. When the audio file is playing, when I click back or home, audio stops playing. So I want to push it to the background.

You are probably looking for