- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在我的应用中实现应用内结算。我刚刚实现了 REQUEST_PURCHASE、CONFIRM_NOTIFICATION 和 CHECK_BILLING,它们运行良好。
现在我正在尝试实现 REQUEST_TRANSACTIONS 方法,但我遇到了一个问题,一旦我使用 sendBIllingRequest 发送了请求,我就会收到一个带有 RESULT_DEVELOPER_ERROR (5) 的 RESPONSE_CODE 响应。
这是我提出请求的方式:
Log.d(TAG, "Action equals RESTORE_TRANSACTIONS");
Bundle request = makeRequestBundle("RESTORE_TRANSACTIONS");
request.putLong("NONCE", BillingSecurity.newNonce());
try {
Bundle response = mService.sendBillingRequest(request);
int response_code = response.getInt("RESPONSE_CODE", -1);
Log.d(TAG, "RESPONSE Restore: " + response_code);
restored=true;
} catch (RemoteException e) {
e.printStackTrace();
}
我阅读了其他问题,在禁用 Debug模式时需要启动 RESTORE_TRANSACTIONS。我从 list 中禁用了它(我清除了该字段,因为如果我输入错误的 LogCat 不会显示任何调试打印),所以这是我的 Android list :
<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="resistorcalc.main"
android:versionName="3.0" android:versionCode="9">
<uses-sdk android:minSdkVersion="8"></uses-sdk>
<uses-permission android:name="com.android.vending.BILLING" />
<application android:label="@string/app_name" android:name=".App" android:icon="@drawable/resistoricon">
<activity android:name=".launchActivity"
android:label="@string/app_name" android:screenOrientation="portrait" android:clearTaskOnLaunch="true" android:finishOnTaskLaunch="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:launchMode="standard" android:label="@string/app_name" android:name="SupportusActivity" android:finishOnTaskLaunch="true" android:clearTaskOnLaunch="true" android:screenOrientation="portrait"></activity>
<activity android:launchMode="standard" android:label="@string/app_name" android:name="OhmLawActivity" android:finishOnTaskLaunch="true" android:clearTaskOnLaunch="true" android:screenOrientation="portrait"></activity>
<activity android:launchMode="standard" android:label="@string/app_name" android:name="ResistorSumActivity" android:finishOnTaskLaunch="true" android:clearTaskOnLaunch="true" android:screenOrientation="portrait"></activity>
<activity android:name="com.google.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation" android:clearTaskOnLaunch="true" android:finishOnTaskLaunch="true"/>
<service android:name=".billing.BillingService" />
<receiver android:name=".billing.BillingReceiver">
<intent-filter>
<action android:name="com.android.vending.billing.IN_APP_NOTIFY" />
<action android:name="com.android.vending.billing.RESPONSE_CODE" />
<action android:name="com.android.vending.billing.PURCHASE_STATE_CHANGED" />
</intent-filter>
</receiver>
</application>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
现在我的问题是:
谢谢,伊万
最佳答案
list 中的调试标志与此无关。您需要使用发布 key 签署您的应用程序并将草稿上传到 Play 商店。您可能需要等待一个小时左右才能激活它。不,RESTORE_TRANSACTIONS 不适用于测试项目,您需要使用自己发布的项目。所有这些都是described in the reference ,如果你遵循它,你应该不会有任何问题。
关于android - 应用内结算 RESTORE_TRANSACTION 给出 DEVELOPER_ERROR,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10896720/
下面是我用于 Google 登录的代码。我在应用程序文件夹中添加了 google-services.json 文件。我正在使用 classpath 'com.google.gms:google-ser
我开发了一个 React Native 应用程序,我使用 Expo Google-Sign-In 进行 Firebase 身份验证。当我尝试对 Android 上的独立 APK 进行身份验证时收到错误
获得Google Pay merchantId的批准后,尝试打开付款表时出现以下错误。 { statusCode: "DEVELOPER_ERROR", errorCode: 2, statusM
我正在尝试将 Google 登录添加到我的 Android 应用程序中。我已按照以下链接中的说明进行操作: https://developers.google.com/identity/sign-in
我正在我的应用中实现应用内结算。我刚刚实现了 REQUEST_PURCHASE、CONFIRM_NOTIFICATION 和 CHECK_BILLING,它们运行良好。 现在我正在尝试实现 REQUE
我搜索并尝试了 Google Developers 网站、Stack Overflow 和其他有用的博客文章中提供的几乎所有内容。但对我来说没有任何效果。 我的应用已成功登录 Google 帐户,但当
我按照本手册将 Google People API 连接到 Android 应用程序:http://blog.iamsuleiman.com/people-api-android-tutorial-1
我正在通过以下线程将 gmail 登录集成到我的 android 应用程序中: https://developers.google.com/identity/sign-in/android/sign-
我尝试在连接 Firebase 的 Android 应用中实现 Google 登录。当我运行该应用程序并按下 Google 登录按钮时 - 没有任何反应。我在 onActivityResult 中收到
我正在使用 gplus 登录,并在我在 onActivityResult 时收到此错误.... @Override public void onActivityResult(int requestCo
所以我已经搞砸了几天了,我不明白为什么它不起作用。我真的希望有人能帮助我。 我正在尝试使用 Firebase 对使用 Google 登录的用户进行身份验证。所以按照他们的指南here我已设置 Goog
我们正在开发用于订餐的应用程序。在这种情况下,我们实现了 Braintree 支付。一切都很好。下一步是实现 Google Pay(请注意,不是 Android Pay)。我使用了这个文档:布伦特里文
我实现了应用内计费(订阅)并且一切正常 - 我能够订阅,我确认订阅,并且计费流程成功结束并处于正常状态。 但是,在我的应用程序启动时,我正在检查(从 Google Play 缓存)我是否已经购买 -
我认为这是 android、android studio 或 google 中的错误。我可以通过签名的 apk 登录到 google。但是,如果我在 Play 商店上传相同的 apk,它会显示我 St
我已使用此链接在 Firebase 上启用 Google 登录 https://rnfirebase.io/auth/social-auth我的应用程序编译得很好,但是当我按下登录按钮并选择一个 Go
我是一名优秀的程序员,十分优秀!