最近、iOS のアプリ内購入用に Milkman StoreKit ネイティブ拡張機能を購入しました。iPhone 4S で StoreKit の初期化に問題があります。
Milkman ゲームの例の指示に従いました。コードは次のようになります。
log("Is Supported " + StoreKit.isSupported());
if(StoreKit.isSupported())
{
StoreKit.create();
log("StoreKit Initialized.");
// make sure that purchases will actually work on this device before continuing!
// (for example, parental controls may be preventing them.)
if (!StoreKit.storeKit.isStoreKitAvailable())
{
log("Store is disable on this device.");
return;
}
}
StoreKit.isSupported() 関数のドキュメントには、次のように記載されています。
isSupported () method
public static function isSupported():Boolean
Checks if the current platform supports StoreKit. Note that this only determines whether the app is running under iOS (as opposed to Android, Windows, etc.) Use this call before initializing StoreKit in order to confirm that you are on iOS. (So that you can avoid initializing StoreKit on an unsupported platform when building a multi-platform app.)
Returns
Boolean — true if StoreKit is supported; false otherwise.
ラップトップで Flash Builder からアプリを実行すると、Storekit.isSupported() 関数が false を返します (これは iOS デバイスではないため、予想どおり)。ただし、IPA をビルドして iPhone 4 にデプロイすると、WiFi 接続があり、電話の IAP に制限がないことを確認しても、まだ false が返されます。
誰かが同じ問題を抱えてそれを解決したことがありますか、それとも私が次に何を試みるかについて誰か提案がありますか?
どうもありがとう