chronogolf / nativescript-store-update

Apache License 2.0
19 stars 13 forks source link

Alert not showing in Angular-Nativescript #28

Open vforv opened 5 years ago

vforv commented 5 years ago

First I saw this in README: files and change app version in android app.gradle Should it be AndroidManifest.xml file because there we change version for android?

I tried this pkg in my project but not working:

added:

StoreUpdate.init({
    majorUpdateAlertType: AlertTypesConstants.OPTION,
    notifyNbDaysAfterRelease: 0,
    alertOptions: {
        title: 'Attention please',
        message: 'Your app is out of date',
    },
});

in main.ts

after that update version in AndroidManifest.xml

from android:versionCode="5" android:versionName="2.0.3">

to android:versionCode="6" android:versionName="3.0.3">

but alert not rising. Is this still working?

bradrice commented 4 years ago

Wouldn't you have to set your version to an older version to get it to tell you a newer version is available? However, I too have not been able to get this plugin to work.

wontroba666 commented 3 years ago

did anyone manage to run this plugin in nativescript + angular?