iOS Question My app crash on Inapp Billing

gerredtor

Active Member
Licensed User
my function on app start:

B4X:
            st.Initialize("LulajStore")
            st.RestoreTransactions

and the billing sub:

B4X:
Sub LulajStore_PurchaseCompleted (Success As Boolean, Product As Purchase)
   Log("Purchase completed")
   If Product.IsInitialized Then
     Log("Product: " & Product.ProductIdentifier & ", date=" & DateTime.Time(Product.TransactionDate) & _
       ", Transaction identifier=" & Product.TransactionIdentifier)
    
   End If
   Log("Success = " & Success)
   setBuy(Success)
   Premium = Success
   setupPRO
End Sub

and the buy and restore sub

B4X:
Sub buyPREM_Click
    If st.CanMakePayments Then
        st.RequestPayment("Lulaj1Pro")
    End If
End Sub

Sub restorePREM_Click
    If st.CanMakePayments Then
        st.RestoreTransactions
    End If
End Sub

and the app crash allways on testflight with the inapp billing

i can add you to the tester's
 
Last edited:

gerredtor

Active Member
Licensed User
yes but the iReleaseLogger library dont run in the testflight mode from apple, but the error comes only in the testflight mode and in the appstore version.

The message from Apple:

During review, your app crashed on iPhone running iOS 9.3.1 when we attempt to buy the In App Purchase, and after the user confirms they want to make the purchase. Because of the crash, the In App Purchase is never initialized within the app - forcing the users into a loop of buy-crash, buy-crash, buy-crash. The Pro features were never fully unlocked within the app.

We have attached detailed crash logs to help troubleshoot this issue.
 
Upvote 0
Top