-
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
[Bug]: Running against localhost with our app-id #32
Comments
@BramDecuypere I am not able to reproduce this issue. My attempt at reproducing issue1. Created new Vue3 project
2. Install OneSignal
3. Add OneSignal codeAdded OneSignal to import './assets/main.css'
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import OneSignalVuePlugin from '@onesignal/onesignal-vue3'
const app = createApp(App)
// Initialize OneSignal
app.use(
OneSignalVuePlugin,
{
appId: 'df886d95-7bd2-48b0-9d3a-abb24d2746ac',
}
);
app.use(router)
app.mount('#app') QuestionCan you share how and where you are initializing OneSignal?
|
@jkasten2 thanks for the help! Followed your exact setup. (Initially thought it might be our setup) But it seems it's really with our app-id/account related. If the app-id IS sensitive, please do let me know so I can remove it
PS: Editing my code to the app-id you used in your setup - |
[UPDATE] - it randomly started working, still has the issue on some loads. |
The "TypeError: Cannot read properties of undefined (reading 'message')" is due to your app being configured as HTTP instead of HTTPS. The v2 of this plugin only supports HTTPS, see this comment for more details. |
@jkasten2 but shouldn't that be solved with the option of "local testing - treat http as HTTPS"? |
How can we help?
The vue plugin we are using is combined with a vitesse app (I don't believe this impacts anything)
But now trying to create a new app it seems to not work on localhost.
Below is the config.
This is the error I get, I haven't found anything, so not sure it's a bug or a question in this case
Here is the error I got, when trying to understand it (it seems to be in the library itself?), but I don't have a reason for it.
Here is the code I got too while trying to debug:
The text was updated successfully, but these errors were encountered: