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

NS7 and Angular 10 not working after compiling for device[iOS] #301

Open
vforv opened this issue Sep 23, 2020 · 1 comment
Open

NS7 and Angular 10 not working after compiling for device[iOS] #301

vforv opened this issue Sep 23, 2020 · 1 comment

Comments

@vforv
Copy link

vforv commented Sep 23, 2020

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: ns 7.0.8
  • Plugin(s):
"dependencies": {
    "@angular/animations": "~10.1.2",
    "@angular/common": "~10.1.2",
    "@angular/compiler": "~10.1.2",
    "@angular/core": "~10.1.2",
    "@angular/forms": "~10.1.2",
    "@angular/platform-browser": "~10.1.2",
    "@angular/platform-browser-dynamic": "~10.1.2",
    "@angular/router": "~10.1.2",
    "@danvick/ngx-translate-nativescript-loader": "^2.0.0",
    "@nativescript/angular": "~10.1.0",
    "@nativescript/core": "~7.0.0",
    "@nativescript/firebase": "^11.0.0-rc.8",
    "@nativescript/theme": "~2.5.0",
    "@ngrx/effects": "^7.2.0",
    "@ngrx/entity": "^7.2.0",
    "@ngrx/store": "^7.2.0",
    "@ngrx/store-devtools": "^7.2.0",
    "@ngx-translate/core": "^11.0.1",
    "apkup": "^1.2.0",
    "nativescript-appversion": "^1.4.1",
    "nativescript-barcodescanner": "^3.4.1",
    "nativescript-fancyalert": "^3.0.6",
    "nativescript-feedback": "^1.3.7",
    "nativescript-geolocation": "^5.1.0",
    "nativescript-google-places-autocomplete-last-version": "^1.0.4",
    "nativescript-iqkeyboardmanager": "^1.5.1",
    "nativescript-open-app": "^0.2.0",
    "nativescript-phone": "^1.4.0",
    "nativescript-theme-core": "~1.0.4",
    "nativescript-ui-listview": "^9.0.2",
    "nativescript-ui-sidedrawer": "^9.0.3",
    "nativescript-vibrate": "^4.0.1",
    "ngrx-store-freeze": "^0.2.4",
    "reflect-metadata": "~0.1.12",
    "rxjs": "~6.6.0",
    "tslib": "^2.0.0",
    "zone.js": "~0.10.2"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "~0.1001.2",
    "@angular/cli": "~10.1.2",
    "@angular/compiler-cli": "~10.1.2",
    "@nativescript/android": "7.0.0",
    "@nativescript/ios": "7.0.0",
    "@nativescript/schematics": "^10.1.0",
    "@nativescript/tslint-rules": "~0.0.5",
    "@nativescript/webpack": "~3.0.0",
    "@types/jasmine": "~3.5.0",
    "@types/jasminewd2": "~2.0.3",
    "@types/node": "^12.12.62",
    "codelyzer": "^6.0.0",
    "ghooks": "^2.0.4",
    "jasmine-core": "~3.6.0",
    "jasmine-spec-reporter": "~5.0.0",
    "karma": "~5.0.0",
    "karma-chrome-launcher": "~3.1.0",
    "karma-coverage-istanbul-reporter": "~3.0.2",
    "karma-jasmine": "~4.0.0",
    "karma-jasmine-html-reporter": "^1.5.0",
    "protractor": "~7.0.0",
    "ts-node": "~8.3.0",
    "tslint": "~6.1.0",
    "typescript": "~4.0.2"
  },
  • NativeScript-Angular:
  • Angular: 10

Describe the bug

When I build on emulator, and device it works. When I build for device and open on device it open and close fast

To Reproduce

This commad is used to create build:

tns build ios --bundle --env.environment="prod" --env.uglify --env.aot --clean --release --for-device --provision YOUR PROVISIONING PROFILE

I tried this with brend new app same thing, video: https://streamable.com/u4dym2

New project generated with:

ng new --collection=@nativescript/schematics my-shared-app --shared

I tried with ns as well

When I do run on emulator like this:

tns run ios --bundle --env.environment="prod" --env.uglify --env.aot --clean it works

So I guess it is some bug with this part: --release --for-device

Expected behavior

Sample project

App should work as it working on emulator

@vforv vforv changed the title NS7 and Angular 10 not working after compilation on device NS7 and Angular 10 not working after compiling for device Sep 23, 2020
@vforv vforv changed the title NS7 and Angular 10 not working after compiling for device NS7 and Angular 10 not working after compiling for device[iOS] Sep 23, 2020
@sulandr
Copy link

sulandr commented Feb 3, 2021

is there any update on this issue?

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

2 participants