1

I try to build a native mobile app using PhoneGap SDK with Angular 2. I got the "ng build --prod" output and put it into /www folder of PhoneGap project.

Now on mobile app: PhoneGap Developer, the page is loading but the Angular 2 module is not initiating. I don't get any errors using the debugging tool: weinre (mentioned here: http://docs.phonegap.com/references/developer-app/debugging/)

Do you have any ideas how I get an error? I already tried "adb logcat" (Android debugging)

The web app is running without any errors accessing the IP-Address with port 3000 directly.

1
  • a. You've tagged this PhoneGap Build and I don't think you're using Build, are you? b. Have you tried chrome inspect whilst your Android phone is plugged into your computer? Commented Oct 19, 2016 at 12:28

1 Answer 1

2

I had the same problem. I fixed it with changing the <base href="/"> to <base href="./">

Sign up to request clarification or add additional context in comments.

1 Comment

Awesome. Also solves problem with putting app into subfolder on domain.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.