Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

WhatsApp changed the name of the package? Sudden error with package name

I have an integration with wpp in my app, this worked fine for around a year, but I detect that it doesn’t work anymore. When the app tries to launch the intent, a NameNotFoundException happens

   Caused by: android.content.pm.PackageManager$NameNotFoundException: com.whatsapp

Any idea what’s going on?

Edit: I think it’s an Android 11 issue, does that make sense?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

There are new changes in android 11 of package visibility. You need to add a new section under you app’s tag: Please go through official documentation Link

Try this in manifest.xml

     <queries>
       
        <package android:name="com.whatsapp" />
        <package android:name="com.whatsapp.w4b" />
       
 </queries>

OR this only.

<queries>
    <package android:name="com.whatsapp" />
</queries>
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading