How to get Push Notifications in background

I’m trying to receive and show local notifications in background. I’m successfully receiving push notification when the app is active but when you close the app nothing happens.

Is there anyone who has managed to do this with the fuse yet? =)

Hey there Victor, The tests I’ve done on this seem to suggest it’s still working. Can you explain more about your setup?

Details on platform, service & especially message layout would be very useful.


Hi Chris!

When we try it on iOS it works like a charm. But in Android we don’t get any notification when the app is closed. We think maybe it is the message layout?

$msg = array(
'message'     => 'here is a message. message',
'title'        => 'This is a title. title',
'subtitle'    => 'This is a subtitle. subtitle',
'tickerText'    => 'Ticker text here...Ticker text here...Ticker text here',
'vibrate'    => 1,
'sound'        => 1

It was the layout of the message I sent. Now we get background notis in android.
But no sound.

$msg = array(
  'notification'     => array( 
      'alert' => array(          'title' => 'Hello ', 
          'body' => 'This is a message ',
        'sound'=> 'default' // Still no sound?

And how do you turn notifications off from the app?

That does make sense, we havent explicitly exposed sound in the api yet. But if you put 'sound' => 'default' in the alert body of your message you should get the default alert sound on android.

Moved comment/question to separate forum post