Skip to content

Nativescript-Vue Support #53

Open
Open

Description

@keithgulbro

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.

Activity

  1. asharghi commented on May 25, 2020

    @asharghi
  2. vallemar commented on Mar 19, 2021

    @vallemar

    still not working?

  3. asharghi commented on Mar 20, 2021

    @asharghi

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions