Skip to content

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.