Than
Tarique,
I can't help you much except to confirm the library works well on Android 8 &11, LG V20 & Galaxy A70 respectively.
I hope you find your problem, the update feature is really great and looks very professional.
Regards Roger.
Thanks, but I am getting this response when I use "Inappupdatetest" example for b4xpages available on "
https://www.b4x.com/android/forum/t...brary-usable-with-b4xpages.126534/post-791573" I have changed pkg name and used signing Keystore file, the available version Code on playstore is 7, while I have tested from 1 to 6 and it shows me the following response with following code
[CODE lang="b4x" title="Test code" highlight="5,7"]Private Sub InAppUpdate_onAppUpdateInfoReceived(success As Boolean, inAppUpdateInfo As InAppUpdateInfo)
Log($"InAppUpdate_onAppUpdateInfoReceived, Success: ${success}"$)
Log(inAppUpdateInfo.UPDATE_AVAILABILITY_AVAILABLE)
Log(inAppUpdateInfo.UPDATE_AVAILABILITY_DEVELOPER_TRIGGERED_UPDATE_IN_PROGRESS)
Log(inAppUpdateInfo.UPDATE_AVAILABILITY_NOT_AVAILABLE)
Log(inAppUpdateInfo.UPDATE_AVAILABILITY_UNKNOWN)
Log(inAppUpdateInfo.updateAvailability)
If success Then
If inAppUpdateInfo.updateAvailability = inAppUpdateInfo.UPDATE_AVAILABILITY_DEVELOPER_TRIGGERED_UPDATE_IN_PROGRESS Or inAppUpdateInfo.updateAvailability = inAppUpdateInfo.UPDATE_AVAILABILITY_AVAILABLE Then
InAppUpdate.startImmediateUpdateFlow
End If
End If
End Sub[/CODE]
the output response of thes logs are
InAppUpdate_onAppUpdateInfoReceived, Success: true
Log(inAppUpdateInfo.UPDATE_AVAILABILITY_AVAILABLE) =
2
Log(inAppUpdateInfo.UPDATE_AVAILABILITY_DEVELOPER_TRIGGERED_UPDATE_IN_PROGRESS) =
3
Log(inAppUpdateInfo.UPDATE_AVAILABILITY_NOT_AVAILABLE)=
1
Log(inAppUpdateInfo.UPDATE_AVAILABILITY_UNKNOWN)=
0
Log(inAppUpdateInfo.updateAvailability)=
1
the value of Log(inAppUpdateInfo.updateAvailability) should be 2
I don't know why it shows me that there is no new version. even playstore not showing update button, it only shows open and uninstall. by pressing open button this test example opens.