Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AppUpdateService: linkToDeath ? unable to update the app #53

Open
emmaxCreative opened this issue Nov 19, 2020 · 15 comments
Open

AppUpdateService: linkToDeath ? unable to update the app #53

emmaxCreative opened this issue Nov 19, 2020 · 15 comments

Comments

@emmaxCreative
Copy link

So I have 2 Apps on the playstore in the internal test track. One is dev envrionment and the other one is for production.

Last time I tested the inAppUpdate it worked after 5 or so restarts of the dev app. Even yesterday. After some time the update showed up, but only for the dev app... production app never received the update dialog and has nothing in the logcat.

Today I released a new update to test again and this is the log output for the dev app... production app still shows no sign that the checkUpdate would be performed.

I/PlayCore: UID: [10183]  PID: [21896] AppUpdateService : requestUpdateInfo(com.package.name)
I/PlayCore: UID: [10183]  PID: [21896] AppUpdateService : Initiate binding to the service.
I/PlayCore: UID: [10183]  PID: [21896] AppUpdateService : ServiceConnectionImpl.onServiceConnected(ComponentInfo{com.android.vending/com.google.android.finsky.installservice.DevTriggeredUpdateService})
I/PlayCore: UID: [10183]  PID: [21896] AppUpdateService : linkToDeath
I/PlayCore: UID: [10183]  PID: [21896] OnRequestInstallCallback : onRequestInfo
I/PlayCore: UID: [10183]  PID: [21896] AppUpdateService : Unbind from service.

This is how I check for the update. I check in the root.dart of my App in initState()

// Platform messages are asynchronous, so we initialize in an async method.
  Future<void> checkForUpdate() async {
    if (Platform.isAndroid) {
      InAppUpdate.checkForUpdate().then((_updateInfo) {
        if (_updateInfo?.updateAvailable == true)
          InAppUpdate.performImmediateUpdate().catchError((e) => print(e));
      }).catchError(
          (e) => log(e.toString(), name: 'Error checking for update'));
    } else if (Platform.isIOS) {
      //ios updater goes here
    } else {}
  }

Is there something wrong with the way how I check for the update or is this a general problem that updates dont seem to show up ?

@winetastingapp
Copy link

Same issue here

@vivekwebdesk
Copy link

Same issue here

@winetastingapp did you get the answer?

@emme1009
Copy link

still no answer...

@ghoshnilotpal8
Copy link

Any solution guys ?? Facing the same issue

@emme1009
Copy link

I still get the log output that there is a linkToDeath but somehow the Android InAppUpdate worked on my last Production and Dev Update. Dont know why or how. But its still a big issue imo because you never know if its going to work or if its going to do nothing at all

@sucper
Copy link

sucper commented May 17, 2021

same issue
is there any solution to the problem?

@sucper
Copy link

sucper commented May 31, 2021

@feilfeilundfeil
Can you help us?

@adarshsinggh
Copy link

still facing this issue any solution?

@maqsats
Copy link

maqsats commented Oct 20, 2021

Same issue here Android Native

1 similar comment
@alexma01
Copy link

alexma01 commented Dec 1, 2021

Same issue here Android Native

@nikb7
Copy link

nikb7 commented Feb 12, 2022

+1

@adarshsinggh
Copy link

+1

that's not a problem it will work fine when it will be released

@Lazizbek97
Copy link

+1

that's not a problem it will work fine when it will be released

Hii
are you sure it works when it's released on play store?
and when update button pressed does it work like native apps? I meant it doesn't go to play store to press update again, right?
I cannot check this out, on debug mode, that is why I'm asking such questions

@PabloCir
Copy link

I can confirm that once we upload the app to the play store, it works without problems. I had the same problem, it reached 100%, I installed but did not restart the app, but once uploaded to the store, it works as expected.

@RGTechPro
Copy link

did anyone find any fix for that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests