pwa-builder / PWABuilder-CLI

Node.js tool for App Generation
Other
1.62k stars 142 forks source link

App crashing on startup, receiving *lovely* 1 star reviews #319

Closed JudahGabriel closed 5 years ago

JudahGabriel commented 5 years ago

Some Android users are reporting my Angular PWA app crashing at startup. The Android app was generated from pwabuilder.com.

image image image image

As you can see from the screenshots, this is happening on a variety of Android devices:

However, I cannot reproduce any of these crashes. In my emulator and on a few real Android phones, my app launches fine, including on a Galaxy S7.

Frustratingly, the Google Play Developer Console shows no records of any crashes, nor any "app not responding" (ANRs).

@boyofgreen Any idea what might be going wrong? Or any ideas for debugging this?

boyofgreen commented 5 years ago

Hi Judah, I'm sorry I missed this one. I was looking back through issues and somehow I never addressed this. I had a similar problem with an android app and it turned out to be a memory issue. I didn't know exactly what the formula was for crashes, but it seemed to have to do with older devices. Our new Android platform should consume much less memory (it is no longer based on cordova), if you want to give that a try, its on preview right now.

JudahGabriel commented 5 years ago

Hey no worries, I'm sure you're a busy dude!

I'm interested in giving the new Android platform a try. Is it just preview.pwabuilder.com? (Just loaded it, and it looks so new and shiny, heheh, nice work.)

boyofgreen commented 5 years ago

hey @JudahGabriel just wanted to touch base and see if the new project worked better for you?

JudahGabriel commented 5 years ago

I think it's working better. I haven't received reports of crashes now for several weeks. I'll comment back here if I do.

netcinematics commented 5 years ago

Received this "Crash or Freeze" message from Certification process.

For our PWA app (BOXiGON) built with PWABuilder CLI (love it):

"App Policies: 10.4.2 App Crash or Freeze Notes To Developer Unfortunately, we can’t test the app, because the app does not display any content at launch; and crashes after a minute. Tip: A Windows app may run flawlessly during development and testing, but after submitting it for certification testing, the app may crash or perform unexpectedly. Along these same lines, your app may not perform as expected after publication. You can contact Developer Support at http://aka.ms/storesupport if you need assistance with troubleshooting. " Is this same issue as Judah or different?

How best to reproduce "Freeze or Crash" of PWA - emulators?

How does HTML even Crash - I don't get it? :)

JudahGabriel commented 5 years ago

@netcinematics It looks like that's a crash on Windows. My issue is a crash on Android.

Have you tried the PWA Builder preview?

netcinematics commented 5 years ago

Judah, fan of your medium post. It is good. Thank you for blazing that trail. : ) I will double check PREVIEW - thanks for the tip.

boyofgreen commented 5 years ago

yes, and just a heads up, we are pulling the design we have on preview and have gone back to the drawing board. We want to deliver the new design on Feb 8th, with that, we'll move everything in preview out to prod. When we decided to roll back the design on preview, we got stuck where it was hard to push the updates out to prod wtihout breaking stuff

netcinematics commented 5 years ago

Wow! Really like that link. I'll have to circle back. Thanks again.