sp-react-native-in-app-updates icon indicating copy to clipboard operation
sp-react-native-in-app-updates copied to clipboard

Check needs update showing errors

Open jeoEnfin opened this issue 1 year ago • 5 comments

LOG [Error: sp-react-native-in-app-updates checkNeedsUpdate error: Error: com.google.android.play.core.appupdate.internal.zzy: Failed to bind to the service.]

jeoEnfin avatar May 16 '23 10:05 jeoEnfin

I'm facing the same error.

brunohmagro avatar May 22 '23 18:05 brunohmagro

Same here!

faniry6 avatar May 23 '23 13:05 faniry6

Added <uses-permission android:name="com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE" tools:node="remove"/> in AndroidManifest.xml

JeanSilvany avatar Jun 16 '23 23:06 JeanSilvany

I had the same error.

"react-native": "0.71.9", "sp-react-native-in-app-updates": "^1.3.1",

In my case this error was appearing only in Android in case i was trying to bypass android build version through -> await inAppUpdates.checkNeedsUpdate({0.0.2}). In order to make it work :

  • Remove version from checkNeedsUpdate
  • Downgrade versionCode* (not versionName) from build.gradle (app)
  • Run ./gradlew clean in android folder
  • Build
  • Done

*PS: work with real device and not emaulator

kostas64 avatar Sep 04 '23 08:09 kostas64

This sounds like something on the environment is wrong (i.e you're testing on an emulator). I see it as a more generic in app updates sdk issue and not related to the react-native wrapper library that sp-react-native-in-app-updates is.

You'll probably get better answers in SO but this requires trial and error to resolve unfortunately. Google hasn't made debugging in app updates easy.

SudoPlz avatar Feb 27 '24 07:02 SudoPlz