jobernolte
jobernolte
``` Instabug.Builder(application, appToken) .setInvocationEvents(InstabugInvocationEvent.SHAKE) .setInAppMessagingState(Feature.State.DISABLED) .build() Instabug.setWelcomeMessageState(WelcomeMessage.State.DISABLED) BugReporting.setAutoScreenRecordingEnabled(false) BugReporting.setScreenshotByMediaProjectionEnabled(true) CrashReporting.setAnrState(Feature.State.DISABLED) //if (settings.userId != null) showInstabugWelcome() Surveys.setState(Feature.State.ENABLED) ``` We don't use APM in our app.
You can check for the free trial period like this: ``` val pricingPhaseList = productDetails.subscriptionOfferDetails?.firstOrNull()?.pricingPhases?.pricingPhaseList ?: return null ... val freeTrial = pricingPhaseList.firstOrNull { it.priceAmountMicros == 0L } ```
@ryderz8 I do it the following way: ``` ... val pricingPhaseList = productDetails.subscriptionOfferDetails?.firstOrNull()?.pricingPhases?.pricingPhaseList ?: return null val pricingPhase = pricingPhaseList.lastOrNull() ?: return null val introductory = pricingPhaseList.firstOrNull { it.priceAmountMicros >...
@Lingviston https://developer.android.com/reference/com/android/billingclient/api/ProductDetails.PricingPhase#getBillingPeriod()
See my other comment: https://github.com/android/play-billing-samples/issues/540#issuecomment-1200721899 You have different pricing phases in the list, with the first one representing the normal price and period of the product.
@Lingviston yes, you're right. The last pricing phase is the normal price.
It's a little bit hidden... from the official docs: > Pricing phases for purchasing an item through a offer. Pricing phases contains time ordered list of PricingPhase. https://developer.android.com/reference/com/android/billingclient/api/ProductDetails.PricingPhases
There's only one crash showing up on Crashlytics. But I think this is a different problem. ``` Fatal Exception: java.lang.RuntimeException: Unable to get provider androidx.startup.InitializationProvider: androidx.startup.StartupException: java.lang.LinkageError: [ObjectBox] Android failed...
Unfortunately this is not possible, as we do not use any other framework to collect crashes and logcat information at the same time (eg Instabug).