Closed UncleJey closed 10 years ago
Hi UncleJey,
thank you for notification. we are checking it at this time. when we finish it we will notify about it.
BR, Andrei
Hi everyone! @UncleJey could you please provide more details? 1) do you have an approved application in Amazon Appstore? 2) we need more logs from the console because OpenIABHelper is not the only used tag 3) how many stores do you have on the device? 4) if 3).number > 1, did you publish your application anywhere else? Thank you for the report.
Hi! 1) Primary i tested on not-aprooved app. When it's doesnt work i test in aprooved app http://www.amazon.com/foranj-Farm-Town/dp/B00HBR9OWU 2) soon 3) it's kindle fire with amazon store only 4) it published in google, opera, ios but with other iab plugin
попробовал установить 0.9.6 запустил на kindle fire при попытке совершить покупку приложение падает
07-18 10:53:46.501: I/Unity(3283): Buying ruby40_ft2 pack
07-18 10:53:46.501: I/Unity(3283):
07-18 10:53:46.501: I/Unity(3283): (Filename: ./artifacts/AndroidManagedGenerated/UnityEngineDebug.cpp Line: 49)
07-18 10:53:46.533: D/ActivityManager(1401): Starting: Intent { cmp=com.amazonforanj.farmtown2/org.onepf.openiab.UnityProxyActivity (has extras) } from pid 3283
07-18 10:53:46.556: D/PhoneWindow(3283): couldn't save which view has focus because the focused view android.view.SurfaceView@40549268 has no id.
07-18 10:53:47.048: W/ActivityManager(1401): Activity pause timeout for HistoryRecord{40765ae8 com.amazonforanj.farmtown2/com.prime31.UnityPlayerNativeActivity}
07-18 10:53:47.197: I/Unity(3283): gen pushes
07-18 10:53:47.197: I/Unity(3283):
07-18 10:53:47.197: I/Unity(3283): (Filename: ./artifacts/AndroidManagedGenerated/UnityEngineDebug.cpp Line: 49)
07-18 10:53:47.236: I/Unity(3283): NullReferenceException: Object reference not set to an instance of an object
07-18 10:53:47.236: I/Unity(3283): at PushNotifications.scheduleLocalNotification (System.String message, Int32 seconds) [0x00000] in
07-18 10:53:47.236: I/Unity(3283): (Filename: Line: -1)
07-18 10:53:47.744: D/AndroidRuntime(3283): Shutting down VM
07-18 10:53:47.744: W/dalvikvm(3283): threadid=1: thread exiting with uncaught exception (group=0x40015560)
07-18 10:53:47.751: W/System.err(3283): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.amazonforanj.farmtown2/org.onepf.openiab.UnityProxyActivity}: java.lang.NullPointerException
07-18 10:53:47.759: W/System.err(3283): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
07-18 10:53:47.759: W/System.err(3283): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
07-18 10:53:47.759: W/System.err(3283): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
07-18 10:53:47.759: W/System.err(3283): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
07-18 10:53:47.759: W/System.err(3283): at android.os.Handler.dispatchMessage(Handler.java:99)
07-18 10:53:47.759: W/System.err(3283): at android.os.Looper.loop(Looper.java:130)
07-18 10:53:47.759: W/System.err(3283): at android.app.ActivityThread.main(ActivityThread.java:3683)
07-18 10:53:47.759: W/System.err(3283): at java.lang.reflect.Method.invokeNative(Native Method)
07-18 10:53:47.759: W/System.err(3283): at java.lang.reflect.Method.invoke(Method.java:507)
07-18 10:53:47.759: W/System.err(3283): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:850)
07-18 10:53:47.759: W/System.err(3283): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:608)
07-18 10:53:47.759: W/System.err(3283): at dalvik.system.NativeStart.main(Native Method)
07-18 10:53:47.759: W/System.err(3283): Caused by: java.lang.NullPointerException
07-18 10:53:47.767: W/System.err(3283): at org.onepf.openiab.UnityProxyActivity.onCreate(UnityProxyActivity.java:26)
07-18 10:53:47.767: W/System.err(3283): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
07-18 10:53:47.767: W/System.err(3283): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
07-18 10:53:47.767: W/System.err(3283): ... 11 more
07-18 10:53:47.767: W/FlurryAgent(3283): Error logged: uncaught
07-18 10:53:47.767: W/FlurryAgent(3283): Ending session
Did you add 'UnityProxyActivity' to the manifest?
если вы имеете ввиду это, то добавил.
<activity android:name="org.onepf.openiab.UnityProxyActivity"
android:launchMode="singleTask"
android:label="@string/app_name"
android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">
</activity>
<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>
может быть причина в том что у нас нестандартно называется основной активити?
<activity android:name="com.prime31.UnityPlayerProxyActivity" android:launchMode="singleTop" android:label="@string/app_name" android:screenOrientation="landscape" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">
нашёл в чём проблема была. 0.9.6 не поддерживает метод OpenIAB.enableDebugLogging(true); убрал строку и 0.9.6 заработал.
По какой-то причине не находится активити org.onepf.openiab.UnityProxyActivity
. Возможно там какие-то конфликты с prime31. Попробуйте, пожалуйста, стартовать покупки своих SKU в чистом проекте.
На сцене OpenIAB-demo есть простой скрипт, там можно добавить тестовый товар.
Так же в Assets/Plugins/Android
должен лежать джарник OpenIAB-plugin.
Ясно, спасибо. В текущей версии этот метод добавлен, если он вам нужен.
Не работает платёжка амазона ни на проапрувленном приложении, ни на новом.
версия для unity3d https://github.com/onepf/OpenIAB/releases/tag/0.9.6.1
07-16 14:28:24.445: I/Unity(17681): billingNotSupportedEvent: Billing isn't supported (response: 3:Billing Unavailable) 07-16 14:29:18.515: E/OpenIabHelper(17376): In-app billing error: Illegal state for operation (launchPurchaseFlow): IAB helper setup failed. 07-16 14:29:18.515: D/OpenIAB-UnityPlugin(17376): Purchase finished: IabResult: 3, Cannot start purchase process. Billing unavailable. (response: 3:Billing Unavailable), purchase: null 07-16 14:29:18.515: E/OpenIAB-UnityPlugin(17376): Error purchasing: IabResult: 3, Cannot start purchase process. Billing unavailable. (response: 3:Billing Unavailable) 07-16 14:31:24.297: D/OpenIAB-UnityPlugin(17681): Setup finished. 07-16 14:31:24.297: E/OpenIAB-UnityPlugin(17681): Problem setting up in-app billing: IabResult: 3, Billing isn't supported (response: 3:Billing Unavailable)
вроде всё по инструкции настроил.