|
|
@@ -15,6 +15,7 @@ import { StatusBar, Style } from '@capacitor/status-bar'
|
|
|
import { Capacitor } from '@capacitor/core'
|
|
|
import { useBackButton } from '@ionic/vue'
|
|
|
import { SplashScreen } from '@capacitor/splash-screen'
|
|
|
+import { Openinstall } from 'capacitor-openinstall'
|
|
|
|
|
|
import 'normalize.css/normalize.css'
|
|
|
|
|
|
@@ -40,6 +41,8 @@ import './styles/main.less'
|
|
|
import './styles/theme/variables.less'
|
|
|
|
|
|
import common from './mixins/common'
|
|
|
+import eruda from 'eruda'
|
|
|
+eruda.init()
|
|
|
|
|
|
const app = createApp(App)
|
|
|
app.use(i18n)
|
|
|
@@ -80,3 +83,10 @@ if (Capacitor.isNativePlatform()) {
|
|
|
)
|
|
|
}
|
|
|
}
|
|
|
+Openinstall.init()
|
|
|
+Openinstall.addListener('wakeUp', data => {
|
|
|
+ console.log('wakeUp', data)
|
|
|
+})
|
|
|
+Openinstall.getInstallCanRetry(data => {
|
|
|
+ console.log('getInstallCanRetry', data)
|
|
|
+})
|