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

object dump on init (nativescript angular) #47

Closed
JamesRoome opened this issue Oct 14, 2019 · 0 comments
Closed

object dump on init (nativescript angular) #47

JamesRoome opened this issue Oct 14, 2019 · 0 comments

Comments

@JamesRoome
Copy link

Created a new project using tns create HelloWorld, selected angular project.

Added the plugin using tns plugin add nativescript-advanced-webview

Updated main.ts so it looks like:

    import { platformNativeScriptDynamic } from "nativescript-angular/platform";
    import { AppModule } from "./app/app.module";
    import { init } from 'nativescript-advanced-webview';

    init();
    platformNativeScriptDynamic().bootstrapModule(AppModule);

On launch get:

    JS: ==== object dump start ====
    JS: extend()
    JS: PACKAGE_NAME: "com.android.chrome"
    JS: REQUEST_CODE: "1868"
    JS: INSTANCE: co.fitcom.fancywebview.AdvancedWebViewStatics@1803b14
    JS: null()
    JS: class: class co.fitcom.fancywebview.AdvancedWebViewStatics
    JS: ==== object dump end ====
    JS: ==== object dump start ====
    JS: AdvancedWebView()
    JS: AdvancedWebViewListener()
    JS: AdvancedWebViewStatics()
    JS: CustomTabsCallbackListener()
    JS: CustomTabsServiceConnectionCallBack()
    JS: BuildConfig()
    JS: CustomTabFallback()
    JS: R()
    JS: WebViewActivity()
    JS: WebViewActivityConstants()
    JS: WebViewFallback()
    JS: ==== object dump end ====

package.json

{
  "nativescript": {
    "id": "org.nativescript.HelloWorld",
    "tns-ios": {
      "version": "6.1.0"
    },
    "tns-android": {
      "version": "6.1.2"
    }
  },
  "description": "NativeScript Application",
  "license": "SEE LICENSE IN <your-license-filename>",
  "repository": "<fill-your-repository-here>",
  "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/platform-browser": "~8.2.0",
    "@angular/platform-browser-dynamic": "~8.2.0",
    "@angular/router": "~8.2.0",
    "nativescript-advanced-webview": "^4.0.1",
    "nativescript-angular": "~8.2.0",
    "nativescript-theme-core": "~1.0.6",
    "reflect-metadata": "~0.1.12",
    "rxjs": "^6.4.0",
    "tns-core-modules": "~6.1.0",
    "zone.js": "~0.9.1"
  },
  "devDependencies": {
    "@angular/compiler-cli": "~8.2.0",
    "@ngtools/webpack": "~8.2.0",
    "nativescript-dev-webpack": "~1.2.0",
    "typescript": "~3.5.3"
  },
  "gitHead": "1964ea9e8ca1a0518e0d6370781eedcf6c23db42",
  "readme": "NativeScript Application"
}
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

1 participant