Skip to content
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

Nativescript-Vue Support #53

Open
keithgulbro opened this issue Feb 7, 2020 · 3 comments
Open

Nativescript-Vue Support #53

keithgulbro opened this issue Feb 7, 2020 · 3 comments

Comments

@keithgulbro
Copy link

Hi there,

This plugin looks very promising however it doesn't seem to work with Nativescript-Vue iOS.

Currently, I'm using the following:

  "nativescript": {
    "id": "sample.example.id",
    "tns-android": {
      "version": "6.3.1"
    },
    "tns-ios": {
      "version": "6.3.0"
    }
  },

"nativescript-app-sync": "^2.0.0"

Inside my main.js

import * as application from "tns-core-modules/application";
import { AppSync, InstallMode, SyncStatus } from "nativescript-app-sync";
import { isIOS } from "tns-core-modules/platform";

// App Sync
// Add this in some central place that's executed once in a lifecycle
application.on(application.resumeEvent, () => {
  AppSync.sync({
    deploymentKey: isIOS
      ? "{IOS_ID_HERE}"
      : "{ANDROID_ID_HERE}",

    installMode: InstallMode.ON_NEXT_RESTART,

    mandatoryInstallMode: isIOS
      ? InstallMode.ON_NEXT_RESUME
      : InstallMode.IMMEDIATE,

    updateDialog: {
      updateTitle: "Update Available",
      optionalUpdateMessage: "Please update to the latest version of the app.",
      mandatoryUpdateMessage: "Please update to the latest version of the app.",
      optionalIgnoreButtonLabel: "Later",
      mandatoryContinueButtonLabel: isIOS ? "Exit now" : "Restart now",
      appendReleaseDescription: true
    }
  });
});

new Vue({
  store,
  render(h) {
    return h(SideDrawer, [
      h(DrawerContent, {
        slot: "drawerContent"
      }),
      h(routes.RouteExample, {
        slot: "mainContent"
      })
    ]);
  }
}).$start();

Please let me know if there's something I'm doing wrong.

@asharghi
Copy link

@EddyVerbruggen help?

@vallemar
Copy link

still not working?

@asharghi
Copy link

Maybe @NathanWalker or @rigor789 have some tips?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants