而试图购买带有soomla IAP谷歌认证错误 [英] Google authentication ERROR while trying to purchase with soomla iap

查看:230
本文介绍了而试图购买带有soomla IAP谷歌认证错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

需要一点点帮助。林做一个Android应用程序和集成的Soomla我的应用程序内的一个简单的无广告购买。香港专业教育学院购买按钮​​,它应该做的通过谷歌的实际购买。

什么是发生从谷歌弹出:错误
需要身份验证,你在你的谷歌帐户登录。

我想它的一个小问题,但我不得到什么。我在我的谷歌帐户登录。在Soomla存储正在运行(至少是这么说的)。香港专业教育学院使用我的手机购买OFC启用测试purchase.Im。我所缺少的?

 公共类NoADsButton:MonoBehaviour {
        私人静态布尔storeInitialized = FALSE; // prevent店被初始化两次    无效的start(){
        如果(storeInitialized)回报;
        SoomlaHighway.Initialize();
        StoreEvents.OnSoomlaStoreInitialized + = onSoomlaStoreInitialized;
        SoomlaStore.Initialize(新SoomlaAssets());
    }    公共无效onSoomlaStoreInitialized(){
        storeInitialized = TRUE;
    }    公共无效onmousedown事件(){
           StoreInventory.BuyItem(no_ads);
    }

和项目完成香港专业教育学院作为它在soomla例所示:

 公共常量字符串NO_ADDS_PRODUCT_ID =no_ads;公共静态VirtualGood NO_ADS_LTVG =新LifetimeVG(
    无广告,//名字
    没有更多的广告!,//描述
    no_ads,//产品ID
    新PurchaseWithMarket(NO_ADDS_PRODUCT_ID,0.99)); //顺便这个虚拟的好购买
}


解决方案

在发布测试应用程序的过程中没有做好这通常发生。尝试将认真对谷歌的指示,确保你没有错过任何东西。的http://developer.android.com/google/play/billing/billing_testing.html#billing-testing-test

need a little help. Im making an android app and integrated Soomla for a simple "No ads" purchase inside my app. Ive a purchase button which should do the actual purchase via google.

What occurs is a popup from google : "Error authentication needed, You have to login in your google account" .

I think its a small problem, but i dont get what. I am logged in in my google account. Store in Soomla is running ( at least it says so). ive enable test purchase.Im using my phone for the purchase ofc. What i am missing?

public class NoADsButton : MonoBehaviour {
        private static bool storeInitialized = false; // prevent store to be initialized twice

    void Start () {
        if(storeInitialized)            return;
        SoomlaHighway.Initialize();
        StoreEvents.OnSoomlaStoreInitialized += onSoomlaStoreInitialized;
        SoomlaStore.Initialize(new SoomlaAssets());
    }

    public void onSoomlaStoreInitialized() {
        storeInitialized = true;
    }

    public void OnMouseDown(){
           StoreInventory.BuyItem("no_ads");
    }

And the item ive done as its shown in the soomla example:

public const string NO_ADDS_PRODUCT_ID = "no_ads"; 

public static VirtualGood NO_ADS_LTVG = new LifetimeVG(
    "No Ads", // name
    "No More Ads!", // description
    "no_ads", // item id
    new PurchaseWithMarket(NO_ADDS_PRODUCT_ID, 0.99)); // the way this virtual good is purchased


}

解决方案

This usually happens when the process of publishing the app for testing wasn't done properly. Try going carefully over Google's instructions, make sure you didn't miss anything. http://developer.android.com/google/play/billing/billing_testing.html#billing-testing-test

这篇关于而试图购买带有soomla IAP谷歌认证错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆