You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用Flutter in_app_purchase在Android/Play商店无法显示免费试用

Google Play订阅免费试用不显示问题

我已在Google Play中完成免费试用配置:

Google Play免费试用配置1

Google Play免费试用配置2

我通过以下Flutter代码查询产品详情:

final Set<String> productIDs = <String>{  
  "ad_monthly",   
  "ad_semi_annual",   
  "ad_annual", 
};

final ProductDetailsResponse response =    
  await InAppPurchase.instance.queryProductDetails(productIDs);

返回结果如下:

I/flutter (18343): freeTrial: ad_annual
I/flutter (18343): response: 3
I/flutter (18343): Product Details:
I/flutter (18343): ID: ad_annual
I/flutter (18343): Title: Audio Diary Annual Plan (Audio Diary: AI Voice Journal)
I/flutter (18343): Description: 
I/flutter (18343): Price: £24.99
I/flutter (18343): Raw Price: 24.99
I/flutter (18343): Currency Code: GBP

但在开发模式下进行购买操作时,免费试用并未显示:

购买界面未显示免费试用

我不确定该功能在生产环境是否正常,且因无真实Android设备不知如何测试。苹果端应用无需额外配置即可正常显示免费试用。

编辑补充:我构建了生产APK并通过adb安装到模拟器中,但仍显示年卡30分钟、月卡5分钟等试用时长,而非设置的免费试用。

内容的提问来源于stack exchange,提问作者DaraJ

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.27 15:02:21