Closed sawaca96 closed 2 years ago
const { CodePush } = Plugins;
That doesn't look like Capacitor 3 code to me
@alexcroox then how to use CodePush in index.html ? any suggestion or example ?
//capacitor v3 import { codePush } from 'capacitor-codepush';
That style is for capacitor version 2, but unfortunately, code push does not support capacitor version 2
@sawaca96 I had that Error: "CodePush" plugin is not implemented on ios
error because although I had:
@capacitor/device, @capacitor/dialog, @capacitor/filesystem
installed, I forgot to run npx cap sync
after.
That style is for capacitor version 2, but unfortunately, code push does not support capacitor version 2
Oh, Thanks.
@alexcroox now I use codepush like below
import { codePush, InstallMode } from @capacito-codepush
...
await codePush.sync({
installMode: InstallMode.ON_NEXT_RESUME
})
Description
I want to use CodePush in index.html. But error occurred :
Unhandled Promise Rejection: Error: "CodePush.sync()" is not implemented on iOS
So I checked CodePush object but there is no
sync
method. also API is different from docs.How can I solve this ?
Additional Information
I use vue2 and capacitor3