Aller au contenu

Nuxt 2

Ce contenu n’est pas encore disponible dans votre langue.

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.