Android Question Inappupdate suddenly doesn't work anymore

andredamen

Active Member
Licensed User
Longtime User
Inappupdate worked perfect, but suddenly it doesn't wordk anymore. Does anyone know what is going on?
 

Sagenut

Expert
Licensed User
Longtime User
Without any project to test or verify for errors it's impossible to answer or help you.
 
Upvote 0

Sagenut

Expert
Licensed User
Longtime User
I also have an app with InAppUpdate and it work.
Tested right now.
 
Upvote 0

Sagenut

Expert
Licensed User
Longtime User
I have to correct myself.
I use AppUpdating 2.0
Sorry, so I take myself out as I don't know the other library.
 
Upvote 0

andredamen

Active Member
Licensed User
Longtime User
This is the code I am using all from the beginning.
The program doesn't show the first log (Log(" in inappupdate"))

B4X:
Sub Activity_Create(FirstTime As Boolean)
    
    Activity.LoadLayout("Main")
    
    Private rp As RuntimePermissions
    Dim sf As StringFunctions

    CheckUpdate

         …… more program rules 
 End Sub

Private Sub CheckUpdate
    InAppUpdate.initialize(False)
    InAppUpdate.GetAppUpdateInfo
End Sub

Private Sub InAppUpdate_onAppUpdateInfoReceived(success As Boolean, inAppUpdateInfo As InAppUpdateInfo)
    Log(" in inappupdate")
    If IsPaused(Me) Then Return
    Log(" not paused")
    
    If success Then
        If inAppUpdateInfo.updateAvailability = inAppUpdateInfo.UPDATE_AVAILABILITY_DEVELOPER_TRIGGERED_UPDATE_IN_PROGRESS Or inAppUpdateInfo.updateAvailability = inAppUpdateInfo.UPDATE_AVAILABILITY_AVAILABLE Then
            If Application.VersionCode < inAppUpdateInfo.availableVersionCode Then
                InAppUpdate.startImmediateUpdateFlow
                'InAppUpdate.StartFlexibleUpdateFlow
            End If
        End If
    End If
    
End Sub
 
Upvote 0
Top