컨텐츠로 건너뛰기

Nuxt 2

이 내용은 아직 번역본이 없습니다.

Install in Nuxt 2

Create a plugin file capacitor-updater.js in plugins directory.

import { CapacitorUpdater } from '@capgo/capacitor-updater'
export default ({ app }) => {
if (process.client) {
window.onNuxtReady(() => {
CapacitorUpdater.notifyAppReady()
})
}
}

This will load the plugin on the client side and notify the app that it is ready to receive updates.