- PUSH Notification

This commit is contained in:
Paolo Arena
2019-02-05 03:39:56 +01:00
parent a66d83cb23
commit d8e0ff0bc3
6 changed files with 91 additions and 11 deletions

View File

@@ -4,6 +4,7 @@
<q-btn v-if="getPermission() !== 'granted'" class="enable-notifications" color="primary" rounded size="lg" icon="notifications" @click="askfornotification" :label="$t('notification.ask')"/>
<q-btn v-if="getPermission() === 'granted'" class="enable-notifications" color="primary" rounded size="lg" icon="notifications" @click="showNotificationExample" label="Send Notification"/>
<q-btn v-if="getPermission() === 'granted'" class="enable-notifications" color="secondary" rounded size="lg" icon="notifications" @click="configurePushSub" label="Send Push Notification !"/>
<br>
<div>
<q-chip square color="secondary">