Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Nuxt.jsで始めるPWA

takanorip
December 21, 2017

 Nuxt.jsで始めるPWA

takanorip

December 21, 2017
Tweet

More Decks by takanorip

Other Decks in Technology

Transcript

  1. ࣗݾ঺հ w େ໦ଚلʢΦΦΩλΧϊϦ!UBLBOPSJQʣ w ϑϩϯτΤϯυΤϯδχΞ w גࣜձࣾεϚʔτυϥΠϒ w 3FBDUɺ7VFɺ1PMZNFSɺ΢Σϒ੍࡞શൠ w

    1PMZNFS+BQBO຋༁νʔϜ w ࠓ೥ΛৼΓฦͬͯɿ
 ڈ೥͔Βମॏ͕LH͔ͪ͘૿͑ͨͷͰےτϨ͕Μ͹Δ
  2. 18"

  3. OVYUDPOpHKT oneSignal: { init: { appId: ‘Your App ID’, allowLocalhostAsSecureOrigin:

    true, // 通知許可を求めるダイアログを最初に出さない autoRegister: false, welcomeNotification: { disable: true }, notifyButton: { enable: true } } },
  4. OVYUDPOpHKT // Inside page components this.$OneSignal.push(() => { this.$OneSignal.isPushNotificationsEnabled((isEnabled) =>

    { if (isEnabled) { console.log('Push notifications are enabled!') } else { console.log('Push notifications are not enabled yet.') } }) })