You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to implement the module in my Nuxt page. But it seems it does not work properly every time.
I have setup the nuxt.config.js as follow:
// One SignaloneSignal: {init: {appId: "****",safari_web_id: "web.onesignal.auto.****",allowLocalhostAsSecureOrigin: true,welcomeNotification: {disable: true},promptOptions: {slidedown: {prompts: [{type: "category",autoPrompt: true,text: {actionMessage:
"Abonniere verschiedene Themen von ABC und bleibe auf dem Laufenden.",acceptButton: "Abonnieren",cancelButton: "Später",/* CATEGORY SLIDEDOWN SPECIFIC TEXT */negativeUpdateButton: "Abbrechen",positiveUpdateButton: "Aktualisieren",updateMessage:
"Ändere dein Abonnement um verschiedene Themen von ABC zu erhalten."},delay: {pageViews: 2,timeDelay: 20},categories: [{tag: "portfolio",label: "Portfolio"},{tag: "projects",label: "Projekte"},{tag: "general",label: "Generell"}]}]}}}},// .....modules: [// https://go.nuxtjs.dev/axios"@nuxtjs/axios","@nuxtjs/onesignal","@nuxtjs/pwa",["vue-scrollto/nuxt",{duration: 300}]],
And there is an method where I want to show the category slidedown:
Because when it works, the output of this.$OneSignal instance is:
Now when I reload the page and the showCategorySlidedown function does not work, but does not give any warning. Instead I checked the instance again and it looks like an other instance.
The text was updated successfully, but these errors were encountered:
I try to implement the module in my Nuxt page. But it seems it does not work properly every time.
I have setup the nuxt.config.js as follow:
And there is an method where I want to show the category slidedown:
Because when it works, the output of
this.$OneSignal
instance is:Now when I reload the page and the
showCategorySlidedown
function does not work, but does not give any warning. Instead I checked the instance again and it looks like an other instance.The text was updated successfully, but these errors were encountered: