Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/107.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript nuxt.js中的PWA模块没有';不要在iOS和safari上工作_Javascript_Ios_Vue.js_Progressive Web Apps_Nuxt.js - Fatal编程技术网

Javascript nuxt.js中的PWA模块没有';不要在iOS和safari上工作

Javascript nuxt.js中的PWA模块没有';不要在iOS和safari上工作,javascript,ios,vue.js,progressive-web-apps,nuxt.js,Javascript,Ios,Vue.js,Progressive Web Apps,Nuxt.js,我试图在nuxt.js中使用PWA模块,到目前为止,我在firebase服务器上的以下地址启动了nuxt应用程序 在chrome for android、windows和mac上运行良好,但在iOS上不起作用,在safari上对任何设备都不起作用 下面是我的nuxt.config.js 还有,我想问,有没有任何选项可以定制弹出窗口,要求用户下载nuxt应用程序,作为一个渐进的网络应用程序,而不是在chrome中使用它 export default { mode: 'spa', /*

我试图在nuxt.js中使用PWA模块,到目前为止,我在firebase服务器上的以下地址启动了nuxt应用程序

在chrome for android、windows和mac上运行良好,但在iOS上不起作用,在safari上对任何设备都不起作用

下面是我的nuxt.config.js

还有,我想问,有没有任何选项可以定制弹出窗口,要求用户下载nuxt应用程序,作为一个渐进的网络应用程序,而不是在chrome中使用它


export default {
  mode: 'spa',
  /*
  ** Headers of the page
  */
  head: {
    title: process.env.npm_package_name || '',
    meta: [
      { charset: 'utf-8' },
      { name: 'viewport', content: 'width=device-width, initial-scale=1' },
      { hid: 'description', name: 'description', content: process.env.npm_package_description || '' }
    ],
    link: [
      { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
    ]
  },
  /*
  ** Customize the progress-bar color
  */
  loading: { color: '#fff' },
  /*
  ** Global CSS
  */
  css: [
  ],
  /*
  ** Plugins to load before mounting the App
  */
  plugins: [
  ],
  /*
  ** Nuxt.js dev-modules
  */
  buildModules: [
  ],
  /*
  ** Nuxt.js modules
  */
  modules: [
    // Doc: https://axios.nuxtjs.org/usage
    '@nuxtjs/axios',
    '@nuxtjs/pwa',
  ],
  /*
  ** Axios module configuration
  ** See https://axios.nuxtjs.org/options
  */
  axios: {
  },
  /*
  ** Build configuration
  */
  build: {
    /*
    ** You can extend webpack config here
    */
    extend (config, ctx) {
    }
},
  /*
  ** Overwrite's generated manifest values
  */
  manifest: {
    name: 'Nuxt.js PWA',
    short_name: 'Nuxt.js PWA',
    lang: 'en',
    display: 'standalone',
  },
  pwa: {
    meta: {
      mobileAppIOS: true 
    }
  }
}