react-native-check-app-install icon indicating copy to clipboard operation
react-native-check-app-install copied to clipboard

undefined is not an object (evaluating '_appList.APP_LIST[key].pkgName')

Open kriptonhaz opened this issue 7 years ago • 7 comments

Hi, I tried just like the readme and just like the title said,

my environment so far: RN: 0.48.4 react-native-check-app-install 0.0.4

thanks

kriptonhaz avatar Mar 27 '18 09:03 kriptonhaz

Did anyone mange to solve this issue?

boozi2 avatar May 29 '18 10:05 boozi2

Got the same error, someone solved?

gabrielbuzziv avatar Dec 13 '18 17:12 gabrielbuzziv

I encountered the same problem. Turns out this npm package only checks a list of popular apps. You can find a file named app-list.js inside this package. When you try to detect an app that is not on the list, you will get this error.

MichaelQ1an avatar Jan 29 '19 21:01 MichaelQ1an

fixed with https://github.com/redpandatronicsuk/react-native-check-app-install/pull/19

onitzschke avatar Mar 02 '19 09:03 onitzschke

Hi,

AppInstalledChecker.isAppInstalledAndroid('com.waze') still throws this error for me. I checked inside node_modules/react-native-check-app-install, and yarn add (or npm install) probably doesn't have access to your latest version. The old line is still inside app-installed-checker.js : return this.checkPackageName(APP_LIST[key].pkgName);

brainman07 avatar Jun 14 '19 14:06 brainman07

Yes @brainman07 is right. The old line is still present inside node_modules. Please updated the npm model to have latest version. cc @onitzschke @redpandatronicsuk

edit: Those who are facing this issue here's how you solve it.

  1. Go to package.json and edit the line with "react-native-check-app-install" to use github as source instead of npmjs.com by changing it to:
 "react-native-check-app-install": "redpandatronicsuk/react-native-check-app-install"

This changes the source to github. A simple npm install after that should do the trick.

wuodland avatar Aug 18 '19 00:08 wuodland

evaluating '_appList.APP_LIST[key].pkgName

irfanismaya20 avatar Mar 10 '21 16:03 irfanismaya20