-
Notifications
You must be signed in to change notification settings - Fork 92
Open
Description
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, dangductrung, buzzySmile, ghoshnilotpal8, loicgeek and 5 moreYukiAttano
Metadata
Metadata
Assignees
Labels
No labels