最近のアクセス:
[Use Huawei In App Billing] プロパティ

Huawei プラットフォーム向けに生成する場合、アプリケーションでアプリ内課金を使用するかどうかを指定します。

False
True

適用範囲

レベル: メインオブジェクト

説明

生成するアプリケーションに Huawei 固有のアプリ内課金プラットフォーム HUAWEI In-App Purchases (IAP) を使用して収益化を行うかどうかを定義します。
このプロパティを有効にする場合、この手順に従ってアカウントを適切に設定し、Merchant Service を有効にします。プロセスが承認されたら、次の操作が必要です:
テスト目的では、アプリケーションの Sandbox Testing 環境に複数の異なる HuaweiID ユーザーを追加すれば、商品の購入時にクレジットカードに課金されません。購入プロセスの開始前に次の警告メッセージが表示されます:
Sandbox test
This is a test.The system will skip the payment process without deducting any fees. [ OK ] 

トラブルシューティング

com.genexus.inappbillinglib.util.SkuDetails.getSku() の null ポインターの例外

StoreManager の PurchaseProduct メソッドの使用時に次のエラーが発生します:
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.genexus.inappbillinglib.util.SkuDetails.getSku()' on a null object reference
        at com.genexus.inappbillinglib.StoreManager$3.invoke(StoreManager.java:137)
        at com.artech.externalapi.ExternalApi.invokeMethod(ExternalApi.java:276)
        at com.artech.externalapi.ExternalApi.execute(ExternalApi.java:70)
        at com.artech.actions.ApiAction.runExternalObjectMethod(ApiAction.java:76)
        at com.artech.actions.ApiAction.Do(ApiAction.java:57)
        at com.artech.actions.CompositeAction.Do(CompositeAction.java:119)
        at com.artech.actions.ActionExecution$2.doInBackground(ActionExecution.java:363)
        at com.artech.actions.ActionExecution$2.doInBackground(ActionExecution.java:352)
        at com.artech.utils.TaskRunner.lambda$executeOnExecutor$2(TaskRunner.java:22)
        at com.artech.utils.-$$Lambda$TaskRunner$epLfyblLY1hXkfy5GrschUD8-W0.run(Unknown Source:2)
        at java.util.concurrent.ThreadPoolExecutor.processTask(ThreadPoolExecutor.java:1187)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:784)
Google Services を使用するデバイスで実行する場合、Huawei の設定は考慮されないため、Google のアプリ内課金を設定するようにします。

実行時/設計時

このプロパティは設計時にのみ適用されます。

使用可能バージョン

このプロパティは GeneXus 17 Upgrade 2 以降で利用できます。

参考情報

[ Main Platform ] プロパティ
[ Huawei In App Public Key ] プロパティ
[ Huawei Services File ] プロパティ
StoreManager 外部オブジェクト


サブページ
Created: 21/04/20 03:05 by Admin Last update: 21/10/28 23:31 by Admin
カテゴリ
Powered by GXwiki 3.0