﻿import "./bundle-config";
import * as application from "tns-core-modules/application";
import { StoreUpdate, AlertTypesConstant } from "nativescript-store-update";

StoreUpdate.init({
  notifyNbDaysAfterRelease: 1,
  majorUpdateAlertType: AlertTypesConstant.OPTION
})
application.start({ moduleName: "main-page" });

﻿import "./bundle-config";
import * as application from 'tns-core-modules/application';
import { StoreUpdate, AlertTypesConstant } from "nativescript-store-update";

new StoreUpdate({
  notifyNbDaysAfterRelease: 0,
  majorUpdateAlertType: AlertTypesConstant.OPTION
});
application.start({ moduleName: "main-page" });

--- 
+++ 
@@ -1,9 +1,9 @@
 ﻿import "./bundle-config";
-import * as application from 'tns-core-modules/application';
+import * as application from "tns-core-modules/application";
 import { StoreUpdate, AlertTypesConstant } from "nativescript-store-update";
 
-new StoreUpdate({
-  notifyNbDaysAfterRelease: 0,
+StoreUpdate.init({
+  notifyNbDaysAfterRelease: 1,
   majorUpdateAlertType: AlertTypesConstant.OPTION
-});
+})
 application.start({ moduleName: "main-page" });
Update demo use of plugin
