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
{{ message }}
This repository was archived by the owner on Feb 7, 2019. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 7, 2019. It is now read-only.
import Vue from 'nativescript-vue';
// This fails horribly
var pushPlugin = require("nativescript-push-notifications");
import router from './router';
import store from './store';
import './styles.scss';
// Uncommment the following to see NativeScript-Vue output logs
Vue.config.silent = false;
new Vue({
router,
store,
}).$start();
Hi @lukepolo, as the support for Vue in NativeScript is in experimental stage we haven't implemented such compatibility in this plugin and that is why you may get this error. If you or anyone else can help solving this one, we will be happy to receive PRs.
Activity
tried to add push notifications, but failure awaits NativeScript/push…
tbozhikov commentedon May 18, 2018
Hi @lukepolo, as the support for Vue in NativeScript is in experimental stage we haven't implemented such compatibility in this plugin and that is why you may get this error. If you or anyone else can help solving this one, we will be happy to receive PRs.
[-]Can't find variable: Push[/-][+]Vuejs Support[/+]rebz commentedon May 22, 2018
+1 Would love to have this. I don't know enough about the iOS side to properly submit a PR.
vratojr commentedon Jul 28, 2018
Hello, @lukepolo , to go one step further you should change your require to import:
I'm using the vue template as well and I succeed in registering the app and receiving notifications.