Version
v3.0.0-beta.19
Reproduction link
https://github.com/nuxt-community/pwa-module
Steps to reproduce
I was create a trusted https on localhost for testing, there working fine with OneSignal.
But, in production environment sometimes working.
If not works, then I got this error, when refresh browser:

I don't understand what is wrong?
I call OneSignal in mounted() hook in app layout.
this.$OneSignal.push(() => {
   this.$OneSignal.showNativePrompt();
    this.$OneSignal.isPushNotificationsEnabled((isEnabled) => {
    if (isEnabled) {
      console.log('Push notifications are enabled!')
    } else {
      console.log('Push notifications are not enabled yet.')
    }
  })
});
If I refresh many times the browser, then I got this (only in production):

What is expected ?
Every page refresh show native prompt to user.
What is actually happening?
Sometimes show, sometimes not showing native prompt.
Additional comments?
I don't understand, why works on DEV env, and why not in PROD env. :-(
Please help!!!
This bug report is available on Nuxt community (#c195)