-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[question]: one signal sdk and nuxt 3 #29
Comments
i try to init it this way but this doesnt return anything
|
for anyone wondering here i solved it like this... create a file called one-signal.client.ts in plugins folder
|
@djixadin I've tried the same file in a nuxt 3.6 project, calling both useOneSignal() as well as just oneSignal() and both still return undefined. |
@ColinTravis this worked for me. |
I am using oneSignal with capacitor in my nuxt 3 project this is how I am doing it
|
How can we help?
i try to integrate this plugin into my nuxt 3.6 project... i tried both 1.0.2 version and the latest beta v2.beta5 with no success..
first i created one-signal.ts file in plugins directory and i got window is not defined error.
then i renamed the file to one-signal.client.ts so its only a client side plugin and it got initialized.
now the method is different and when i call useOneSignal() hook i get undefined... nuxt 3 plugins has a return with provide that i can use to return the instance but theres nothing for me to return here and this doesnt mount itself on the vue instance
The text was updated successfully, but these errors were encountered: