function documentReserveBudget() {
  navigator.budget.reserve('silent-push').then(function(reserved) {
    if (reserved)
      sendResultToTest("ok - reserved budget");
    else
      sendResultToTest("failed - not able to reserve budget");
  }, function() {
    sendResultToTest("failed - error while trying to reserve budget");
  });
}
// Request a reservation for a silent push.
Request a reservation for a silent push.
Request a reservation for a silent push .
function documentReserveBudget() {
  navigator.budget.reserve('silent-push').then(function(reserved) {
    if (reserved)
      sendResultToTest("ok - reserved budget");
    else
      sendResultToTest("failed - not able to reserve budget");
  }, function() {
    sendResultToTest("failed - error while trying to reserve budget");
  });
}
function documentReserveBudget ( ) { navigator . budget . reserve ( 'silent-push' ) . then ( function ( reserved ) { if ( reserved ) sendResultToTest ( "ok - reserved budget" ) ; else sendResultToTest ( "failed - not able to reserve budget" ) ; } , function ( ) { sendResultToTest ( "failed - error while trying to reserve budget" ) ; } ) ; }
Request a reservation for a silent push.
Request a reservation for a silent push .