android-browser-helper icon indicating copy to clipboard operation
android-browser-helper copied to clipboard

PackageManger: NameNotFoundException raised while launching TWA

Open mohit1993 opened this issue 5 years ago • 3 comments

I am facing failure to launch TWA for my app, No fatal in app but TWA is not getting launched , look like error below is causing this: 2021-02-04 12:13:53.032 2169-2169/? W/System.err: android.content.pm.PackageManager$NameNotFoundException: com.microsoft.whiteboard.beta 2021-02-04 12:13:53.032 2169-2169/? W/System.err: at android.app.ApplicationPackageManager.getApplicationInfoAsUser(ApplicationPackageManager.java:419) 2021-02-04 12:13:53.032 2169-2169/? W/System.err: at android.app.ApplicationPackageManager.getApplicationInfo(ApplicationPackageManager.java:400) 2021-02-04 12:13:53.032 2169-2169/? W/System.err: at com.oneplus.util.OpUtils.updateTopPackage(OpUtils.java:429) 2021-02-04 12:13:53.032 2169-2169/? W/System.err: at com.android.systemui.statusbar.phone.NavigationBarFragment.notifyNavBarColorChanged(NavigationBarFragment.java:1500) 2021-02-04 12:13:53.032 2169-2169/? W/System.err: at com.android.systemui.statusbar.NavigationBarController.notifyNavBarColorChanged(NavigationBarController.java:295) 2021-02-04 12:13:53.032 2169-2169/? W/System.err: at com.android.systemui.statusbar.CommandQueue$H.handleMessage(CommandQueue.java:1315) 2021-02-04 12:13:53.032 2169-2169/? W/System.err: at android.os.Handler.dispatchMessage(Handler.java:107) 2021-02-04 12:13:53.032 2169-2169/? W/System.err: at android.os.Looper.loop(Looper.java:214) 2021-02-04 12:13:53.032 2169-2169/? W/System.err: at android.app.ActivityThread.main(ActivityThread.java:7710) 2021-02-04 12:13:53.032 2169-2169/? W/System.err: at java.lang.reflect.Method.invoke(Native Method) 2021-02-04 12:13:53.032 2169-2169/? W/System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:516) 2021-02-04 12:13:53.032 2169-2169/? W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)

This is happening many devices for user but not on my device, one user told me its happening on One Plus devices, Kindly help here.

mohit1993 avatar Feb 05 '21 04:02 mohit1993

Which version of android-browser-helper are you using in the app?

andreban avatar Feb 05 '21 09:02 andreban

2.1.0

Though exception suggests it might be problem from Oneplus devices but any help here would be really appreciated

mohit1993 avatar Feb 09 '21 08:02 mohit1993

The exception seems to indicate that the app is trying to launch com.microsoft.whiteboard.beta (which I couldn't find on the Play Store to download and try to reproduce). Is your application using TwaProviderPicker to find which browser to launch?

andreban avatar Feb 09 '21 14:02 andreban