Open keithgulbro opened 4 years ago
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.
@EddyVerbruggen help?
still not working?
Maybe @NathanWalker or @rigor789 have some tips?
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-app-sync": "^2.0.0"
Inside my main.js
Please let me know if there's something I'm doing wrong.