def.then(function () {
     chat_manager.send_native_notification('Permission granted', 'Odoo has now the permission to send you native notifications on this device.');
 });