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

iOS didn't not update after restarting. #68

Open
alonstar opened this issue Sep 15, 2020 · 4 comments
Open

iOS didn't not update after restarting. #68

alonstar opened this issue Sep 15, 2020 · 4 comments

Comments

@alonstar
Copy link

alonstar commented Sep 15, 2020

Android is working, but iOS after re-starting is still old version.

I also checked the package's version and history on server, it seems ok.

How do I find out what is wrong?

==================================================================================

CONSOLE LOG file: src/app/app.component.ts:31:24: AppSync syncStatus: UPDATE_INSTALLED
CONSOLE LOG file: src/app/app.component.ts:35:26: AppSync: update installed (v4) - it will be activated upon next cold boot

Then I restarted app...

CONSOLE LOG file: src/app/app.component.ts:31:24: AppSync syncStatus: UP_TO_DATE
CONSOLE LOG file: src/app/app.component.ts:33:26: AppSync: no pending updates; you're running the latest version, which is undefined

        AppSync.sync({
            serverUrl:'https://ota.aaa.com',
            enabledWhenUsingHmr: true,
            deploymentKey: isIOS ? "dZiaUCZThcugCyhWuOzHrSBKOYHaRcTdAZyltXdC" : "dZiaUCZThcugCyhWuOzHrSBKOYHaRcTdAZyltXdC",
            installMode: InstallMode.ON_NEXT_RESTART,
            mandatoryInstallMode: InstallMode.ON_NEXT_RESTART
          }, (syncStatus: SyncStatus, updateLabel?: string): void => {
            console.log("AppSync syncStatus: " + syncStatus);
            if (syncStatus === SyncStatus.UP_TO_DATE) {
              console.log(`AppSync: no pending updates; you're running the latest version, which is ${updateLabel}`);
            } else if (syncStatus === SyncStatus.UPDATE_INSTALLED) {
              console.log(`AppSync: update installed (${updateLabel}) - it will be activated upon next cold boot`);
            }
        });
 "dependencies": {
    "@angular/animations": "~8.2.0",
    "@angular/common": "~8.2.0",
    "@angular/compiler": "~8.2.0",
    "@angular/core": "~8.2.0",
    "@angular/forms": "~8.2.0",
    "@angular/http": "8.0.0-beta.10",
    "@angular/platform-browser": "~8.2.0",
    "@angular/platform-browser-dynamic": "~8.2.0",
    "@angular/router": "~8.2.0",
    "@nativescript/theme": "^2.3.3",
    "jssha": "^1.6.2",
    "nativescript-angular": "^8.21.0",
    "nativescript-app-sync": "^2.0.0",
    "nativescript-barcodescanner": "^3.4.2",
    "nativescript-carousel": "^6.1.1",
    "nativescript-couchbase-plugin": "^0.9.6",
    "nativescript-exit": "^1.0.1",
    "nativescript-localize": "4.2.0",
    "nativescript-numeric-keyboard": "^4.3.1",
    "nativescript-theme-core": "^2.0.24",
    "nativescript-ui-gauge": "^6.0.0",
    "reflect-metadata": "~0.1.8",
    "rxjs": "^6.4.0",
    "rxjs-compat": "^6.3.2",
    "tns-core-modules": "~6.5.0",
    "typescript-collections": "^1.3.3",
    "zone.js": "^0.9.1"
  }
┌───────┬────────────────┬─────────────┬───────────┬─────────────┬──────────────────────┐
│ Label │ Release Time   │ App Version │ Mandatory │ Description │ Install Metrics      │
├───────┼────────────────┼─────────────┼───────────┼─────────────┼──────────────────────┤
│ v4    │ 34 minutes ago │ 2.0.4       │ No        │             │ Active: 25% (1 of 4) │
│       │                │             │           │             │ Total: 1             │
├───────┼────────────────┼─────────────┼───────────┼─────────────┼──────────────────────┤
│ v3    │ an hour ago    │ 2.0.4       │ No        │             │ Active: 25% (1 of 4) │
│       │                │             │           │             │ Total: 1 (1 pending) │
├───────┼────────────────┼─────────────┼───────────┼─────────────┼──────────────────────┤
│ v2    │ 7 hours ago    │ 2.0.4       │ No        │             │ Active: 50% (2 of 4) │
│       │                │             │           │             │ Total: 2             │
├───────┼────────────────┼─────────────┼───────────┼─────────────┼──────────────────────┤
│ v1    │ 7 hours ago    │ 2.0.4       │ No        │             │ No installs recorded │
└───────┴────────────────┴─────────────┴───────────┴─────────────┴──────────────────────┘
@SingleMalted
Copy link

SingleMalted commented Jul 20, 2021

Hey @alonstar, did you ever figure out why the iOS version isn't updating? I'm having the same issue, Android works fine but iOS says it's been updated and running the latest but the changes aren't applied.

v12 │ 18 minutes ago │ 1.9.5 │ Yes │ NA │ Active: 0% (0 of 0) - Total: 0 (1 pending)

@francois-pasquier
Copy link

Same story there.

@alonstar
Copy link
Author

@SingleMalted No, I didn't figure out what's wrong with it. :'(

@caracal7
Copy link

caracal7 commented Jan 2, 2025

Same problem(

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

4 participants