Debug

  • 1
  • Question
  • Updated 4 years ago
  • (Edited)
Hi I would like a little guidance on how best to debug an android/windows app using phonegap.  The app works ok via normal browser & iPhone, but crashes on android & windows.  We are a little in the dark as although we have ticked debug, we cannot see how to view the error/crash reports.  Please help.
Photo of Simon

Simon

  • 3 Posts
  • 0 Reply Likes

Posted 4 years ago

  • 1
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Simon,
Since this appears to be your first posting, please answer the following questions.
- is this your first hybrid mobile app?
- are you using phonegap desktop app?
- Are you using CLI, Build or SDK? Please do not assume the answer. Please read the link.

Thanks
Jesse
Photo of Simon

Simon

  • 3 Posts
  • 0 Reply Likes
Hi Jesse
Many thanks.

We have developed many apps, but this is the first using phonegap.
We are using the browser based phonegap at build.phonegap.com and uploading a zip that was created in ionic creator. We tested it via browser and iphone (via hydrated QR link) and it works on both. On attempting android & windows it crashes, so the felling is its a minor issue, but nowhere can we see how to debug to track down the cause. I assume the above means we are 'build'.
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Can you confirm that your config.xml and index.html are both in the root directory of that zip file, and not in some directory called /www or otherwise?
Photo of Simon

Simon

  • 3 Posts
  • 0 Reply Likes
Yes, we can confirm that is the case.
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
OK.
Are you using push notifications and the phonegap-plugin-push?
If so, use an older version of that plugin (like 1.4.x) and rebuild.