IAPHUB Start appears to be crashing my Android build

Hi! I’ve spent today adding the IAPHUB Start component, along with the IAPHUB Paywall, following all of the guides that I can find. In the web preview, the flow works as expected, checking for a subscription from a Home screen and returning the iaphubId. I then followed the steps to add all of the API keys, subscription group and products to IAPHUB and to the Play Console and App Store Connect, eventually submitting a build for Android, which is in Internal testing (Apple build needs to be reviewed). The problem is that when the app is opened on my Galaxy S21 FE, it directs to the IAPHUB Start - I see the spinner, then the app shuts down. In Adalo, the successful actions have been set to update the iaphubId and then link to the home screen. The fail condition links to a try again screen. I don’t see the home, or the try again. It just closes down. Checking the database and I see that an id is being returned by IAPHUB.
Has anyone seen similar issues please? I’m not sure what to do except painstakingly go through all of the instructions again! Fingers crossed that the iOS version works (if approved!)
Thank you. Tony
@iaphub

Hi! I’ve spent today adding the IAPHUB Start component, along with the IAPHUB Paywall, following all of the guides that I can find. In the web preview, the flow works as expected, checking for a subscription from a Home screen and returning the iaphubId. I then followed the steps to add all of the API keys, subscription group and products to IAPHUB and to the Play Console and App Store Connect, eventually submitting a build for Android, which is in Internal testing (Apple build needs to be reviewed). The problem is that when the app is opened on my Galaxy S21 FE, it directs to the IAPHUB Start - I see the spinner, then the app shuts down. In Adalo, the successful actions have been set to update the iaphubId and then link to the home screen. The fail condition links to a try again screen. I don’t see the home, or the try again. It just closes down. Checking the database and I see that an id is being returned by IAPHUB.
Has anyone seen similar issues please? I’m not sure what to do except painstakingly Official Site go through all of the instructions again! Fingers crossed that the iOS version works (if approved!)
Thank you. Tony

Hi Tony,
Here are a few things you might want to check:

  • Database Updates: Ensure that the iaphubId is correctly updated in the database and that there are no conflicts or errors in the update process.
  • Error Handling: Double-check your error handling logic to make sure that any failures in the IAPHUB Start component are properly managed and don’t cause the app to crash.
  • Device-Specific Issues: Sometimes, certain issues can be device-specific. Testing on multiple devices, if possible, might help identify if this is the case.

I’ve managed to resolve this. My bad. As there isn’t a requirement in my app for the IAPHUB start component to restrict access, hasActiveSubscription returns true or false and then i redirect to the main screen. For this reason my link action was set to always redirect - which crashed the Android app. I changed it so that there were two separate link actions, with sometimes clauses. Odd one, but has resolved my issue.