Skip to content
This repository has been archived by the owner on Apr 28, 2022. It is now read-only.

Amazon reject my app. Unity Plugin Issue #115

Open
fjlafarga opened this issue Aug 31, 2016 · 0 comments
Open

Amazon reject my app. Unity Plugin Issue #115

fjlafarga opened this issue Aug 31, 2016 · 0 comments

Comments

@fjlafarga
Copy link

fjlafarga commented Aug 31, 2016

Hi i have a problem with OpenIAB plug for unity directed to Amazon.

  1. I have in my scene OpenIABEventManager and a custom script called inapp.
  2. The custom script contains:
    2.1) The assignation of events:
    private void Awake()
    {
    if (Instance == null)
    {
    Instance = this;
    }
    else if (Instance != null)
    {
    Destroy(gameObject);
    }
    // Listen to all events for illustration purposes
    OpenIABEventManager.billingSupportedEvent += billingSupportedEvent;
    OpenIABEventManager.billingNotSupportedEvent += billingNotSupportedEvent;
    OpenIABEventManager.queryInventorySucceededEvent += queryInventorySucceededEvent;
    OpenIABEventManager.queryInventoryFailedEvent += queryInventoryFailedEvent;
    OpenIABEventManager.purchaseSucceededEvent += OnPurchaseSucceded;
    OpenIABEventManager.purchaseFailedEvent += purchaseFailedEvent;
    OpenIABEventManager.consumePurchaseSucceededEvent += consumePurchaseSucceededEvent;
    OpenIABEventManager.consumePurchaseFailedEvent += consumePurchaseFailedEvent;
    DontDestroyOnLoad( this );
    }
    2.2) The mapping of skus and initialization settings.
    private void Start()
    {

if UNITY_ANDROID

    Debug.Log("Initializing INAPP Plug");

    OpenIAB.mapSku(InitScript.instance.INAPPProductsIDs[0], OpenIAB_Android.STORE_AMAZON, InitScript.instance.INAPPProductsIDs[0]);
    OpenIAB.mapSku(InitScript.instance.INAPPProductsIDs[1], OpenIAB_Android.STORE_AMAZON, InitScript.instance.INAPPProductsIDs[1]);
    OpenIAB.mapSku(InitScript.instance.INAPPProductsIDs[2], OpenIAB_Android.STORE_AMAZON, InitScript.instance.INAPPProductsIDs[2]);
    OpenIAB.mapSku(InitScript.instance.INAPPProductsIDs[3], OpenIAB_Android.STORE_AMAZON, InitScript.instance.INAPPProductsIDs[3]);
    OpenIAB.mapSku(InitScript.instance.INAPPProductsIDs[4], OpenIAB_Android.STORE_AMAZON, InitScript.instance.INAPPProductsIDs[4]);

    OpenIAB.mapSku("amazon.sku_repair_kit", OpenIAB_Android.STORE_AMAZON,
    "amazon.sku_repair_kit");
    OpenIAB.mapSku("amazon.sku_premium_skin", OpenIAB_Android.STORE_AMAZON,
    "amazon.sku_premium_skin");
    OpenIAB.mapSku("amazon.sku_god_mode", OpenIAB_Android.STORE_AMAZON, "amazon.sku_god_mode");

    var options = new Options();
    options.checkInventory = false;
    options.prefferedStoreNames = new string[] { OpenIAB_Android.STORE_AMAZON };
    options.verifyMode = OptionsVerifyMode.VERIFY_ONLY_KNOWN;
    options.prefferedStoreNames = new string[] { OpenIAB_Android.STORE_AMAZON };
    options.availableStoreNames = new string[] { OpenIAB_Android.STORE_AMAZON };
    options.storeSearchStrategy = SearchStrategy.INSTALLER_THEN_BEST_FIT;
    OpenIAB.init(options);
#endif

}
  1. My android manifest have the permissions required:
    uses-permission android:name="com.android.vending.BILLING"
    uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"
    uses-permission android:name="android.permission.INTERNET"
    uses-permission android:name="android.permission.ACCESS_WIFI_STATE"

meta-data android:name="billing.service" android:value="google.GooglePlayIabService"

Google Play
uses-permission android:name="com.android.vending.BILLING"

Amazon Appstore
receiver android:name="com.amazon.inapp.purchasing.ResponseReceiver"
intent-filter
action android:name="com.amazon.inapp.purchasing.NOTIFY" android:permission="com.amazon.inapp.purchasing.Permission.NOTIFY"
intent-filter
receiver

I think than something is wrong in my initialization settings. Please help me if is possible.

Thank you!

@fjlafarga fjlafarga changed the title Amazon reject my app Amazon reject my app. Unity Plugin Aug 31, 2016
@fjlafarga fjlafarga changed the title Amazon reject my app. Unity Plugin Amazon reject my app. Unity Plugin Issue Aug 31, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant