Flutter Subscription (RevenueCat) - android
I have an error with my subscription in my Flutter app.
I did al the steps here https://www.revenuecat.com/blog/android-subscriptions-tutorial,
When I subscribe, it says Subscribed, and I can see my subscription on Google Play, but it says that there are some problems with Google Play Store and it wont redirect me to the next page.
Full Log :
D/[Purchases] - DEBUG(22348): Debug logging enabled.
D/[Purchases] - DEBUG(22348): SDK Version - 3.1.0
D/[Purchases] - DEBUG(22348): Initial App User ID - null
D/[Purchases] - DEBUG(22348): Generated New App User ID - 26c252dd759a42899cbdaca5e8f165a3
D/[Purchases] - DEBUG(22348): Identifying App User ID: $RCAnonymousID:26c252dd759a42899cbdaca5e8f165a3
D/[Purchases] - DEBUG(22348): App foregrounded
D/[Purchases] - DEBUG(22348): PurchaserInfo cache is stale, updating caches
D/[Purchases] - DEBUG(22348): Offerings cache is stale, updating caches
D/[Purchases] - DEBUG(22348): [QueryPurchases] Skipping updating pending purchase queue since BillingClient is not connected yet
D/[Purchases] - DEBUG(22348): No subscriber attributes to synchronize.
D/[Purchases] - DEBUG(22348): Subscriber attributes synced successfully.
D/[Purchases] - DEBUG(22348): Listener set
I/System.out(22348): (HTTPLog)-Static: isSBSettingEnabled false
I/System.out(22348): (HTTPLog)-Static: isSBSettingEnabled false
D/[Purchases] - DEBUG(22348): Starting connection for com.android.billingclient.api.BillingClientImpl#b3b0036
D/[Purchases] - DEBUG(22348): No cached purchaser info, fetching
D/[Purchases] - DEBUG(22348): Billing Service Setup finished for com.android.billingclient.api.BillingClientImpl#b3b0036.
D/[Purchases] - DEBUG(22348): [QueryPurchases] Updating pending purchase queue
D/[Purchases] - DEBUG(22348): GET /subscribers/%24RCAnonymousID%3A26c252dd759a42899cbdaca5e8f165a3
D/[Purchases] - DEBUG(22348): GET /subscribers/%24RCAnonymousID%3A26c252dd759a42899cbdaca5e8f165a3 201
D/[Purchases] - DEBUG(22348): Sending latest purchaser info to listener
D/[Purchases] - DEBUG(22348): Purchaser info updated, sending to listener
I/System.out(22348): (HTTPLog)-Static: isSBSettingEnabled false
I/System.out(22348): (HTTPLog)-Static: isSBSettingEnabled false
D/[Purchases] - DEBUG(22348): No cached offerings, fetching
D/[Purchases] - DEBUG(22348): GET /subscribers/%24RCAnonymousID%3A26c252dd759a42899cbdaca5e8f165a3/offerings
D/[Purchases] - DEBUG(22348): GET /subscribers/%24RCAnonymousID%3A26c252dd759a42899cbdaca5e8f165a3/offerings 200
D/[Purchases] - DEBUG(22348): Requesting products with identifiers: onemonthathlete, lifetimeathlete
D/[Purchases] - DEBUG(22348): Requesting products with identifiers: onemonthathlete, lifetimeathlete
D/[Purchases] - DEBUG(22348): [QueryPurchases] Querying subs
D/[Purchases] - DEBUG(22348): [QueryPurchases] Querying inapp
D/[Purchases] - DEBUG(22348): [QueryPurchases] Cleaning previously sent tokens
D/[Purchases] - DEBUG(22348): [QueryPurchases] Tokens already posted: []
D/[Purchases] - DEBUG(22348): [QueryPurchases] Saving tokens []
D/[Purchases] - DEBUG(22348): [QueryPurchases] Tokens already posted: []
D/[Purchases] - DEBUG(22348): Products request finished for onemonthathlete, lifetimeathlete
D/[Purchases] - DEBUG(22348): Retrieved skuDetailsList: SkuDetails: {"skuDetailsToken":"AEuhp4JfHSozIDQz3ogqW5_NyfRhtNt-A-LcANvB3qrztlhuiwZwEfaGhutYbgPOxNY9","productId":"lifetimeathlete","type":"subs","price":"$126.92","price_amount_micros":126920000,"price_currency_code":"USD","subscriptionPeriod":"P1Y","freeTrialPeriod":"P1W","title":"Lifetime Access (Athlete.co)","description":"Lifetime Access"}, SkuDetails: {"skuDetailsToken":"AEuhp4KlDHUVcCC0ra-q73FjLFF_VHSYmVIGJshi8MT9ljIWGCLne_GojqWqwKqD-4T6","productId":"onemonthathlete","type":"subs","price":"$20.16","price_amount_micros":20160000,"price_currency_code":"USD","subscriptionPeriod":"P1M","freeTrialPeriod":"P1W","title":"One Month Access (Athlete.co)","description":"One Month access to all exercises with this subscription."}
D/[Purchases] - DEBUG(22348): lifetimeathlete - SkuDetails: {"skuDetailsToken":"AEuhp4JfHSozIDQz3ogqW5_NyfRhtNt-A-LcANvB3qrztlhuiwZwEfaGhutYbgPOxNY9","productId":"lifetimeathlete","type":"subs","price":"$126.92","price_amount_micros":126920000,"price_currency_code":"USD","subscriptionPeriod":"P1Y","freeTrialPeriod":"P1W","title":"Lifetime Access (Athlete.co)","description":"Lifetime Access"}
D/[Purchases] - DEBUG(22348): onemonthathlete - SkuDetails: {"skuDetailsToken":"AEuhp4KlDHUVcCC0ra-q73FjLFF_VHSYmVIGJshi8MT9ljIWGCLne_GojqWqwKqD-4T6","productId":"onemonthathlete","type":"subs","price":"$20.16","price_amount_micros":20160000,"price_currency_code":"USD","subscriptionPeriod":"P1M","freeTrialPeriod":"P1W","title":"One Month Access (Athlete.co)","description":"One Month access to all exercises with this subscription."}
D/[Purchases] - DEBUG(22348): Products request finished for onemonthathlete, lifetimeathlete
D/[Purchases] - DEBUG(22348): Retrieved skuDetailsList: SkuDetails: {"skuDetailsToken":"AEuhp4JfHSozIDQz3ogqW5_NyfRhtNt-A-LcANvB3qrztlhuiwZwEfaGhutYbgPOxNY9","productId":"lifetimeathlete","type":"subs","price":"$126.92","price_amount_micros":126920000,"price_currency_code":"USD","subscriptionPeriod":"P1Y","freeTrialPeriod":"P1W","title":"Lifetime Access (Athlete.co)","description":"Lifetime Access"}, SkuDetails: {"skuDetailsToken":"AEuhp4KlDHUVcCC0ra-q73FjLFF_VHSYmVIGJshi8MT9ljIWGCLne_GojqWqwKqD-4T6","productId":"onemonthathlete","type":"subs","price":"$20.16","price_amount_micros":20160000,"price_currency_code":"USD","subscriptionPeriod":"P1M","freeTrialPeriod":"P1W","title":"One Month Access (Athlete.co)","description":"One Month access to all exercises with this subscription."}
D/[Purchases] - DEBUG(22348): lifetimeathlete - SkuDetails: {"skuDetailsToken":"AEuhp4JfHSozIDQz3ogqW5_NyfRhtNt-A-LcANvB3qrztlhuiwZwEfaGhutYbgPOxNY9","productId":"lifetimeathlete","type":"subs","price":"$126.92","price_amount_micros":126920000,"price_currency_code":"USD","subscriptionPeriod":"P1Y","freeTrialPeriod":"P1W","title":"Lifetime Access (Athlete.co)","description":"Lifetime Access"}
D/[Purchases] - DEBUG(22348): onemonthathlete - SkuDetails: {"skuDetailsToken":"AEuhp4KlDHUVcCC0ra-q73FjLFF_VHSYmVIGJshi8MT9ljIWGCLne_GojqWqwKqD-4T6","productId":"onemonthathlete","type":"subs","price":"$20.16","price_amount_micros":20160000,"price_currency_code":"USD","subscriptionPeriod":"P1M","freeTrialPeriod":"P1W","title":"One Month Access (Athlete.co)","description":"One Month access to all exercises with this subscription."}
I/flutter (22348): Offering{identifier: default-monthly, serverDescription: Standard monthly set of packages, availablePackages: [Package{identifier: $rc_monthly, packageType: PackageType.monthly, product: Product{identifier: onemonthathlete, description: One Month access to all exercises with this subscription., title: One Month Access (Athlete.co), price: 20.16, priceString: $20.16, currencyCode: USD, introductoryPrice: IntroductoryPrice{introPrice: 0.0, introPriceString: $0.00, introPricePeriod: P1W, introPricePeriodUnit: DAY, introPricePeriodNumberOfUnits: 7, introPriceCycles: 1}}, offeringIdentifier: default-monthly}, Package{identifier: $rc_lifetime, packageType: PackageType.lifetime, product: Product{identifier: lifetimeathlete, description: Lifetime Access, title: Lifetime Access (Athlete.co), price: 126.92, priceString: $126.92, currencyCode: USD, introductoryPrice: IntroductoryPrice{introPrice: 0.0, introPriceString: $0.00, introPricePeriod: P1W, introPricePeriodUnit: DAY, introPricePeriodNumberOfUnits: 7, introPrice
I/flutter (22348): Package{identifier: $rc_monthly, packageType: PackageType.monthly, product: Product{identifier: onemonthathlete, description: One Month access to all exercises with this subscription., title: One Month Access (Athlete.co), price: 20.16, priceString: $20.16, currencyCode: USD, introductoryPrice: IntroductoryPrice{introPrice: 0.0, introPriceString: $0.00, introPricePeriod: P1W, introPricePeriodUnit: DAY, introPricePeriodNumberOfUnits: 7, introPriceCycles: 1}}, offeringIdentifier: default-monthly}OFFERING MONTHLY
D/ViewRootImpl#e0082f1[MainActivity](22348): ViewPostIme pointer 0
D/ViewRootImpl#e0082f1[MainActivity](22348): ViewPostIme pointer 1
I/flutter (22348): u try sam usao ++++++++++++++++++
D/[Purchases] - DEBUG(22348): Vending offerings from cache
D/[Purchases] - DEBUG(22348): purchase started - product: SkuDetails: {"skuDetailsToken":"AEuhp4KlDHUVcCC0ra-q73FjLFF_VHSYmVIGJshi8MT9ljIWGCLne_GojqWqwKqD-4T6","productId":"onemonthathlete","type":"subs","price":"$20.16","price_amount_micros":20160000,"price_currency_code":"USD","subscriptionPeriod":"P1M","freeTrialPeriod":"P1W","title":"One Month Access (Athlete.co)","description":"One Month access to all exercises with this subscription."} - offering: default-monthly
D/[Purchases] - DEBUG(22348): Making purchase for sku: onemonthathlete
W/ActivityThread(22348): handleWindowVisibility: no activity for token android.os.BinderProxy#826fc3b
D/PhoneWindow(22348): forceLight changed to true [] from com.android.internal.policy.PhoneWindow.updateForceLightNavigationBar:4238 com.android.internal.policy.DecorView.updateColorViews:1490 com.android.internal.policy.PhoneWindow.dispatchWindowAttributesChanged:3216 android.view.Window.setFlags:1148 com.android.internal.policy.PhoneWindow.generateLayout:2444
I/MultiWindowDecorSupport(22348): updateCaptionType >> DecorView#49ed196[], isFloating: false, isApplication: true, hasWindowDecorCaption: false, hasWindowControllerCallback: true
D/MultiWindowDecorSupport(22348): setCaptionType = 0, DecorView = DecorView#49ed196[]
D/ViewRootImpl#3767eed[ProxyBillingActivity](22348): setView = com.android.internal.policy.DecorView#49ed196 TM=true MM=false
D/ViewRootImpl#e0082f1[MainActivity](22348): MSG_WINDOW_FOCUS_CHANGED 0 1
D/InputMethodManager(22348): prepareNavigationBarInfo() DecorView#d561475[MainActivity]
D/InputMethodManager(22348): getNavigationBarColor() -855310
D/ViewRootImpl#3767eed[ProxyBillingActivity](22348): Relayout returned: old=(0,0,1080,2400) new=(0,0,1080,2400) req=(1080,2400)0 dur=7 res=0x7 s={true 499042742272} ch=true
D/OpenGLRenderer(22348): createReliableSurface : 0x7419580880, 0x743143f000
D/ViewRootImpl#3767eed[ProxyBillingActivity](22348): MSG_RESIZED: frame=(0,0,1080,2400) ci=(0,76,0,126) vi=(0,76,0,126) or=1
D/InputTransport(22348): Input channel destroyed: 'ClientS', fd=108
W/BillingHelper(22348): Couldn't find purchase lists, trying to find single data.
D/[Purchases] - DEBUG(22348): BillingWrapper purchases updated. onemonthathlete GPA.3330-8467-4550-90881 aolipdjnbkjdnnobnccokhod.AO-J1OyCPAYXPaGJFyTmE-RtgWe8vxA8qtRkQqQWGRbJdgifLL2ZgBWNP8YVMUr7ATFbPTMZYcdpNVGiQ66irN3cXqL-gOhpoIYMRYJcYdl-HzN-x8u1VsuOEE8VyNh5mOQphC15kdFK
I/System.out(22348): (HTTPLog)-Static: isSBSettingEnabled false
I/System.out(22348): (HTTPLog)-Static: isSBSettingEnabled false
D/ViewRootImpl#3767eed[ProxyBillingActivity](22348): MSG_WINDOW_FOCUS_CHANGED 1 1
D/InputMethodManager(22348): prepareNavigationBarInfo() DecorView#49ed196[ProxyBillingActivity]
D/InputMethodManager(22348): getNavigationBarColor() -855310
D/InputMethodManager(22348): prepareNavigationBarInfo() DecorView#49ed196[ProxyBillingActivity]
D/InputMethodManager(22348): getNavigationBarColor() -855310
V/InputMethodManager(22348): Starting input: tba=com.flutter.Athlete.co ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
D/InputMethodManager(22348): startInputInner - Id : 0
I/InputMethodManager(22348): startInputInner - mService.startInputOrWindowGainedFocus
D/ViewRootImpl#e0082f1[MainActivity](22348): stopped(false) old=false
D/ViewRootImpl#3767eed[ProxyBillingActivity](22348): MSG_WINDOW_FOCUS_CHANGED 0 1
D/InputMethodManager(22348): prepareNavigationBarInfo() DecorView#49ed196[ProxyBillingActivity]
D/InputMethodManager(22348): getNavigationBarColor() -855310
D/ViewRootImpl#e0082f1[MainActivity](22348): MSG_WINDOW_FOCUS_CHANGED 1 1
D/InputMethodManager(22348): prepareNavigationBarInfo() DecorView#d561475[MainActivity]
D/InputMethodManager(22348): getNavigationBarColor() -855310
D/InputMethodManager(22348): prepareNavigationBarInfo() DecorView#d561475[MainActivity]
D/InputMethodManager(22348): getNavigationBarColor() -855310
V/InputMethodManager(22348): Starting input: tba=com.flutter.Athlete.co ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
D/InputMethodManager(22348): startInputInner - Id : 0
I/InputMethodManager(22348): startInputInner - mService.startInputOrWindowGainedFocus
D/InputTransport(22348): Input channel destroyed: 'ClientS', fd=108
D/ViewRootImpl#3767eed[ProxyBillingActivity](22348): stopped(true) old=false
D/ViewRootImpl#3767eed[ProxyBillingActivity](22348): dispatchDetachedFromWindow
D/InputTransport(22348): Input channel destroyed: 'acb1706', fd=125
D/[Purchases] - DEBUG(22348): POST /receipts
D/[Purchases] - DEBUG(22348): POST /receipts 503
E/[Purchases] - ERROR(22348): There was a problem with the Play Store. | Problem communicating with the Store when trying to validate the receipt.
Related
Here map loading issue when connected to wifi with no internet
I am using here map sdk lite version to load map. We have encountered 1 strange issue. When we are connecting to WIFI with no internet, It is requesting to oauth2/token multiple times in background which result in hanging of UI. Can you please suggest us a solution where we can stop this call in such scenario. Or is it possible to execute it in background. Below are logs: 2022-07-27 17:29:01.063 5605-5961/com.daimler.android.sixtythree.debug W/OLP: [WARN ] OLP - Request timed out, request_id=4, timeout=10, retry_count=0, url='https://account.api.here.com/oauth2/token' 2022-07-27 17:29:01.065 5605-5961/com.daimler.android.sixtythree.debug E/Authentication: [ERROR] Authentication - Failed to SignInClient: ApiError(ErrorCode: 3, Message: Network request timed out., HTTPStatusCode: -7) 2022-07-27 17:29:01.074 5605-6888/com.daimler.android.sixtythree.debug I/System.out: (HTTPLog)-Static: isSBSettingEnabled false 2022-07-27 17:29:01.074 5605-6888/com.daimler.android.sixtythree.debug I/System.out: (HTTPLog)-Static: isSBSettingEnabled false 2022-07-27 17:29:07.106 5605-6554/com.daimler.android.sixtythree.debug I/Logger63 -> i() -> Line: 83: toUINetworkDetails 2022-07-27 17:29:07.106 5605-6634/com.daimler.android.sixtythree.debug I/Logger63 -> i() -> Line: 83: toUINetworkDetails 2022-07-27 17:29:07.106 5605-6631/com.daimler.android.sixtythree.debug I/Logger63 -> i() -> Line: 83: toUINetworkDetails 2022-07-27 17:29:07.108 5605-6705/com.daimler.android.sixtythree.debug I/Logger63 -> i() -> Line: 83: toUINetworkDetails 2022-07-27 17:29:11.068 5605-5960/com.daimler.android.sixtythree.debug W/OLP: [WARN ] OLP - Request timed out, request_id=5, timeout=10, retry_count=0, url='https://account.api.here.com/oauth2/token' 2022-07-27 17:29:11.070 5605-5960/com.daimler.android.sixtythree.debug E/Authentication: [ERROR] Authentication - Failed to SignInClient: ApiError(ErrorCode: 3, Message: Network request timed out., HTTPStatusCode: -7) 2022-07-27 17:29:11.079 5605-6900/com
Amazon App Store IAP Implementation throws CommandServiceClient: CommandServiceException at runtime [closed]
Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 5 days ago. Improve this question I'm getting some runtime errors when trying to connect to the Appstore SDK in sandbox mode from a Samsung Device: D/Kiwi: CommandServiceClient: Binding Service!!! D/Kiwi: CommandServiceClient: Created intent with action com.amazon.venezia.CommandService E/Kiwi: CommandServiceClient: CommandServiceException happened, retriesLeft=4 com.amazon.a.a.n.a.a.c: COMMAND_SERVICE_NOT_INSTALLED: null: null at com.amazon.a.a.n.a.d.e(CommandServiceClient.java:257) at com.amazon.a.a.n.a.d.a(CommandServiceClient.java:181) at com.amazon.a.a.n.a.a.a(AbstractCommandTask.java:124) at com.amazon.a.a.n.b.b$1.run(SimpleTaskPipeline.java:179) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:246) at android.os.HandlerThread.run(HandlerThread.java:67) D/Kiwi: CommandServiceClient: Sleeping for 400 ms I/ViewRootImpl#4ec0c94[MainActivity]: MSG_WINDOW_FOCUS_CHANGED 1 1 D/InputMethodManager: prepareNavigationBarInfo() DecorView#f7f1bd[MainActivity] D/InputMethodManager: getNavigationBarColor() -855310 D/FA: Connected to remote service D/InputMethodManager: prepareNavigationBarInfo() DecorView#f7f1bd[MainActivity] D/InputMethodManager: getNavigationBarColor() -855310 mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false D/InputMethodManager: startInputInner - Id : 0 I/InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus V/FA: Processing queued up service tasks: 7 D/InputTransport: Input channel constructed: 'ClientS', fd=202 D/InputMethodManager: prepareNavigationBarInfo() DecorView#f7f1bd[MainActivity] D/InputMethodManager: getNavigationBarColor() -855310 mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false D/InputMethodManager: startInputInner - Id : 0 I/SurfaceControl: nativeRelease nativeObject s[-5476376664434943808] I/SurfaceControl: nativeRelease nativeObject e[-5476376664434943808] I/SurfaceControl: nativeRelease nativeObject s[-5476376664434943904] I/SurfaceControl: nativeRelease nativeObject e[-5476376664434943904] W/FlurryAgent: Analytics report sent to https://data.flurry.com/v1/flr.do I/System.out: (HTTPLog)-Static: isSBSettingEnabled false I/System.out: (HTTPLog)-Static: isSBSettingEnabled false I/Ads: Ad failed to load : 3 D/MyAds: No ad config. I/Ads: Ad failed to load : 3 AllocSpace objects, 2(104KB) LOS objects, 49% free, 7073KB/13MB, paused 212us total 103.640ms D/FONTSIZE: letter=50specials:36 D/TAG: tileWidth=72.0 I/TAG: No ad config. I/Ads: Ad failed to load : 3 D/Kiwi: CommandServiceClient: Binding Service!!! D/Kiwi: CommandServiceClient: Created intent with action com.amazon.venezia.CommandService E/Kiwi: CommandServiceClient: CommandServiceException happened, retriesLeft=3 com.amazon.a.a.n.a.a.c: COMMAND_SERVICE_NOT_INSTALLED: null: null at com.amazon.a.a.n.a.d.e(CommandServiceClient.java:257) at com.amazon.a.a.n.a.d.a(CommandServiceClient.java:181) at com.amazon.a.a.n.a.a.a(AbstractCommandTask.java:124) at com.amazon.a.a.n.b.b$1.run(SimpleTaskPipeline.java:179) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:246) at android.os.HandlerThread.run(HandlerThread.java:67) D/Kiwi: CommandServiceClient: Sleeping for 800 ms W/FlurryAgent: Analytics report sent to https://data.flurry.com/v1/flr.do D/Kiwi: CommandServiceClient: Binding Service!!! D/Kiwi: CommandServiceClient: Created intent with action com.amazon.venezia.CommandService E/Kiwi: CommandServiceClient: CommandServiceException happened, retriesLeft=2 com.amazon.a.a.n.a.a.c: COMMAND_SERVICE_NOT_INSTALLED: null: null at com.amazon.a.a.n.a.d.e(CommandServiceClient.java:257) at com.amazon.a.a.n.a.d.a(CommandServiceClient.java:181) at com.amazon.a.a.n.a.a.a(AbstractCommandTask.java:124) at com.amazon.a.a.n.b.b$1.run(SimpleTaskPipeline.java:179) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:246) at android.os.HandlerThread.run(HandlerThread.java:67) D/Kiwi: CommandServiceClient: Sleeping for 1600 ms D/Kiwi: CommandServiceClient: Binding Service!!! D/Kiwi: CommandServiceClient: Created intent with action com.amazon.venezia.CommandService E/Kiwi: CommandServiceClient: CommandServiceException happened, retriesLeft=1 com.amazon.a.a.n.a.a.c: COMMAND_SERVICE_NOT_INSTALLED: null: null at com.amazon.a.a.n.a.d.e(CommandServiceClient.java:257) at com.amazon.a.a.n.a.d.a(CommandServiceClient.java:181) at com.amazon.a.a.n.a.a.a(AbstractCommandTask.java:124) at com.amazon.a.a.n.b.b$1.run(SimpleTaskPipeline.java:179) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:246) at android.os.HandlerThread.run(HandlerThread.java:67) D/Kiwi: CommandServiceClient: Sleeping for 3200 ms V/FA: Inactivity, disconnecting from the service D/Kiwi: CommandServiceClient: Binding Service!!! D/Kiwi: CommandServiceClient: Created intent with action com.amazon.venezia.CommandService When trying to get the user data but the request never returns on Sandbox. D/d: Appstore SDK - Sandbox Mode: sendGetUserDataRequest D/d: Appstore SDK - Sandbox Mode: sendPurchaseUpdatesRequest/sendGetUserData first:a3c3a5b3-d45d-4a0d-9ba7-6bb7c3075bba D/d: Appstore SDK - Sandbox Mode: sendItemDataRequest When running against the production servers I get a "FAILED" status when trying to get IAP product information available like price name etc. I have their Amazon App Tester app installed and it recognizes the local json I've uploaded. Does it look like a broken linking maybe or Pro guard invalid config file ? I'm a beginner on Android development , was able to implement Play Store IAP's sucessufully in the past but seems I'm missing something regarding the Amazon Store IAP.
Since API 30 you need to add queries to the manifest file. For Amazon this is needed: <manifest xmlns:android="http://schemas.android.com/apk/res/android" ...> <queries> <package android:name="com.amazon.venezia"/> </queries> It's really weird that they didn't write that in their documentation.
Thanks a lot, Simon ! I've included the queries part like this: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="com.mycompany.myapp"> <queries> <package android:name="com.amazon.venezia"/> </queries> <uses-feature android:name="android.hardware.camera" android:required="true" /> But I still get the command service not installed error: > D/Kiwi: AbstractCommandTask: ---------------------------------------------- D/Kiwi: AbstractCommandTask: Executing: get_license D/Kiwi: AbstractCommandTask: ---------------------------------------------- D/Kiwi: AbstractCommandTask: Executing Command: get_license D/Kiwi: CommandServiceClient: Binding Service!!! D/Kiwi: CommandServiceClient: Created intent with action com.amazon.venezia.CommandService E/Kiwi: CommandServiceClient: CommandServiceException happened, retriesLeft=6 com.amazon.a.a.n.a.a.c: COMMAND_SERVICE_NOT_INSTALLED: null: null at com.amazon.a.a.n.a.d.e(CommandServiceClient.java:257) at com.amazon.a.a.n.a.d.a(CommandServiceClient.java:181) at com.amazon.a.a.n.a.a.a(AbstractCommandTask.java:124) at com.amazon.a.a.n.b.b$1.run(SimpleTaskPipeline.java:179) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:201) at android.os.Looper.loop(Looper.java:288) at android.os.HandlerThread.run(HandlerThread.java:67) When running agains Production. When using Sandbox mode, I don't get anymore COMMAND_SERVICE_NOT_INSTALLED but I do get AUTH_TOKEN_VERIFICATION_FAILURE: > D/Kiwi: AbstractCommandTask: Exception occurred while processing task: com.amazon.a.a.n.a.a.a: AUTH_TOKEN_VERIFICATION_FAILURE: null: null com.amazon.a.a.n.a.a.a: AUTH_TOKEN_VERIFICATION_FAILURE: null: null at com.amazon.a.a.n.a.b.a(AuthenticationTokenVerifier.java:94) at com.amazon.a.a.n.a.a.a(AbstractCommandTask.java:204) at com.amazon.a.a.n.a.a.a(AbstractCommandTask.java:131) at com.amazon.a.a.n.b.b$1.run(SimpleTaskPipeline.java:179) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:246) at android.os.HandlerThread.run(HandlerThread.java:67) E/Kiwi: AbstractCommandTask: On Exception!!!!: com.amazon.a.a.n.a.a.a: AUTH_TOKEN_VERIFICATION_FAILURE: null: null I've included the .pem file as they suggested in the project's assets directory but it seems it didn't work: AppstoreAuthenticationKey.pem Do you have any clue of what might be the issue ?
Check you have the Amazon App Tester app installed and configured with your IAP json data, along with the correct receiver tags in your merged AndroidManifest. Additionally, make sure you have sandbox mode enabled on your test device(s): https://stackoverflow.com/a/71393893/18483253 See also my answer over here: https://stackoverflow.com/a/71588959/18483253
Thanks #Chris for your answer! I had the same problem, regrettably it took me a while to understand some connections behind the testing process, so I'd like to summarise a few things that I found out. Apart from the actual coding, a common mistake seems to be the missing receiver in the Manifest. If you encounter the issue, doublecheck here: https://developer.amazon.com/docs/in-app-purchasing/iap-implement-iap.html#responsereceiver Make sure you have downloaded the PEM-file and put it in the right directory. Doublecheck here: https://developer.amazon.com/docs/in-app-purchasing/integrate-appstore-sdk.html#configure_key Now the misunderstanding that I had: When testing in-app purchases with Google Play, the device is actually loading the products from the server. But here's a major difference for Amazon: When testing with the Amazon App Store in Debug mode, the test-device will NOT connect to the server, but the request is handled by another test app, the Amazon App Tester: https://www.amazon.com/-/de/gp/mas/get/android/ref=mas_buy_client?showAsin=1&asin=B00BN3YZM2 But it is not enough to have the app installed on the test device, you also need to download the sku-definition from the web-interface and push it to the test-device. When you then open the Amazon App Tester app, you can see your sku(s) in the last section. Only if you see them there, your test requests will be handled by the app! Here's the tutorial video with the specific steps to set up the device: https://www.youtube.com/watch?v=cmPAY16wGb0&list=PL93Q4ZD_4z4oUkRM0ap23LAN3HBENuXt2&index=9&t=289s I hope this also helps for your understanding!
ERROR: Unknown bits set in runtime_flags: 0x8000
Simple application that scans Wi-Fi networks. This one for a reference: Get available wi-fi scan result in customized listview Just put a ListView in a layout and add ACCESS/CHANGE_WIFI_STATE permissions into manifest. The problem is that it works on my Samsung J3 (2016), but I don't know why it doesn't on my new Samsung M11. Has it something to do with Android versions? I have already returned a Realme C3 that was having same issues because I thought it was due to Mediatek SOC. SAMSUNG M11 (Android 10) LOG: 03/28 20:09:56: Launching 'app' on Physical Device. Install successfully finished in 3 s 220 ms. $ adb shell am start -n "es.josecarlos.myapplication/es.josecarlos.myapplication.SearchWifi" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER Connected to process 29558 on device 'samsung-sm_m115f-R9JR30FM7HJ'. Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page. I/s.myapplicatio: Late-enabling -Xcheck:jni E/s.myapplicatio: Unknown bits set in runtime_flags: 0x8000 D/ActivityThread: setConscryptValidator D/ActivityThread: setConscryptValidator - put E/ANDR-PERF: IPerf:: Perf HAL Service is not available. E/ANDR-PERF: IPerf:: Perf HAL Service is not available. E/ANDR-PERF: IPerf:: Perf HAL Service is not available. I/Perf: Connecting to perf service. I/s.myapplicatio: Starting a blocking GC Alloc Starting a blocking GC Alloc I/s.myapplicatio: Waiting for a blocking GC Alloc I/s.myapplicatio: WaitForGcToComplete blocked Alloc on ClassLinker for 20.796ms Starting a blocking GC Alloc D/PhoneWindow: forceLight changed to true [] from com.android.internal.policy.PhoneWindow.updateForceLightNavigationBar:4238 com.android.internal.policy.DecorView.updateColorViews:1490 com.android.internal.policy.PhoneWindow.dispatchWindowAttributesChanged:3216 android.view.Window.setFlags:1148 com.android.internal.policy.PhoneWindow.generateLayout:2444 I/MultiWindowDecorSupport: updateCaptionType >> DecorView#9ffef9d[], isFloating: false, isApplication: true, hasWindowDecorCaption: false, hasWindowControllerCallback: true D/MultiWindowDecorSupport: setCaptionType = 0, DecorView = DecorView#9ffef9d[] W/s.myapplicatio: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (greylist, reflection, allowed) W/s.myapplicatio: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (greylist, reflection, allowed) D/ViewRootImpl#73bc89c[SearchWifi]: setView = com.android.internal.policy.DecorView#9ffef9d TM=true MM=false D/ViewRootImpl#73bc89c[SearchWifi]: Relayout returned: old=(0,0,720,1560) new=(0,0,720,1560) req=(720,1560)0 dur=14 res=0x7 s={true 3550955520} ch=true D/OpenGLRenderer: createReliableSurface : 0xd3a8e0c0, 0xd3a74800 I/AdrenoGLES: QUALCOMM build : 2ced3f2, Id01cc02572 Build Date : 12/15/19 OpenGL ES Shader Compiler Version: EV031.27.05.02 Local Branch : Remote Branch : refs/tags/AU_LINUX_ANDROID_LA.UM.8.6.2.R1.10.00.00.537.049 Remote Branch : NONE Reconstruct Branch : NOTHING Build Config : S L 8.0.10 AArch32 D/AbsListView: in onLayout changed I/AdrenoGLES: PFP: 0x005ff112, ME: 0x005ff066 W/Gralloc3: mapper 3.x is not supported D/ViewRootImpl#73bc89c[SearchWifi]: MSG_WINDOW_FOCUS_CHANGED 1 1 D/InputMethodManager: prepareNavigationBarInfo() DecorView#9ffef9d[SearchWifi] getNavigationBarColor() -855310 D/InputMethodManager: prepareNavigationBarInfo() DecorView#9ffef9d[SearchWifi] getNavigationBarColor() -855310 V/InputMethodManager: Starting input: tba=es.josecarlos.myapplication ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false D/InputMethodManager: startInputInner - Id : 0 I/InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus D/ViewRootImpl#73bc89c[SearchWifi]: MSG_RESIZED: frame=(0,0,720,1560) ci=(0,65,0,84) vi=(0,65,0,84) or=1 D/InputMethodManager: prepareNavigationBarInfo() DecorView#9ffef9d[SearchWifi] D/InputMethodManager: getNavigationBarColor() -855310 V/InputMethodManager: Starting input: tba=es.josecarlos.myapplication ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false D/InputMethodManager: startInputInner - Id : 0 D/ViewRootImpl#73bc89c[SearchWifi]: ViewPostIme pointer 0 D/ViewRootImpl#73bc89c[SearchWifi]: ViewPostIme pointer 1 D/ViewRootImpl#47f6701[Toast]: setView = android.widget.LinearLayout#76759a6 TM=true MM=false V/Toast: Text: Fsca in android.widget.Toast$TN#b5efe7 D/ViewRootImpl#47f6701[Toast]: Relayout returned: old=(0,65,720,1476) new=(232,1287,488,1364) req=(256,77)0 dur=12 res=0x7 s={true 3550953472} ch=true D/OpenGLRenderer: createReliableSurface : 0xb8abc140, 0xd3a74000 D/ViewRootImpl#47f6701[Toast]: MSG_RESIZED: frame=(232,1287,488,1364) ci=(0,0,0,0) vi=(0,0,256,77) or=1 D/ViewRootImpl#47f6701[Toast]: dispatchDetachedFromWindow D/InputTransport: Input channel destroyed: 'c01175c', fd=75 SAMSUNG J3 (Android 5.1) LOG: 03/28 20:19:39: Launching 'app' on Physical Device. Install successfully finished in 1 m 15 s 28 ms. $ adb shell am start -n "es.josecarlos.myapplication/es.josecarlos.myapplication.SearchWifi" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER Connected to process 8248 on device 'samsung-sm_j320fn-42000d659a379400'. Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page. W/ResourcesManager: getTopLevelResources: /data/app/es.josecarlos.myapplication-1/base.apk / 1.0 running in es.josecarlos.myapplication rsrc of package es.josecarlos.myapplication I/InjectionManager: Inside getClassLibPath + mLibMap{0=, 1=} D/ResourcesManager: For user 0 new overlays fetched Null I/InjectionManager: Inside getClassLibPath caller D/InjectionManager: InjectionManager fillFeatureStoreMap es.josecarlos.myapplication I/InjectionManager: Constructor es.josecarlos.myapplication, Feature store :{} featureStore :{} W/ResourcesManager: getTopLevelResources: /data/app/es.josecarlos.myapplication-1/base.apk / 1.0 running in es.josecarlos.myapplication rsrc of package es.josecarlos.myapplication W/ResourcesManager: getTopLevelResources: /data/app/es.josecarlos.myapplication-1/base.apk / 1.0 running in es.josecarlos.myapplication rsrc of package es.josecarlos.myapplication getTopLevelResources: /data/app/es.josecarlos.myapplication-1/base.apk / 1.0 running in es.josecarlos.myapplication rsrc of package es.josecarlos.myapplication D/ResourcesManager: For user 0 new overlays fetched Null W/ResourceType: Failure getting entry for 0x01080946 (t=7 e=2374) (error -75) W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter androidx.vectordrawable.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable D/PhoneWindow: *FMB* installDecor mIsFloating : false *FMB* installDecor flags : -2139029248 I/art: Rejecting re-init on previously-failed class java.lang.Class<androidx.core.view.ViewCompat$2> Rejecting re-init on previously-failed class java.lang.Class<androidx.core.view.ViewCompat$2> D/TextView: setTypeface with style : 0 D/TextView: setTypeface with style : 0 D/TextView: setTypeface with style : 0 W/ResourceType: Failure getting entry for 0x01080946 (t=7 e=2374) (error -75) Failure getting entry for 0x01080946 (t=7 e=2374) (error -75) D/AbsListView: Get MotionRecognitionManager E/MotionRecognitionManager: mSContextService = null motionService = null D/Activity: performCreate Call Injection manager I/InjectionManager: dispatchOnViewCreated > Target : es.josecarlos.myapplication.SearchWifi isFragment :false D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: false D/PhoneWindow: *FMB* isFloatingMenuEnabled mFloatingMenuBtn : null *FMB* isFloatingMenuEnabled return false I/OpenGLRenderer: Initialized EGL, version 1.4 D/OpenGLRenderer: Get maximum texture size. GL_MAX_TEXTURE_SIZE is 4096 Enabling debug mode 0 I/InjectionManager: dispatchCreateOptionsMenu :es.josecarlos.myapplication.SearchWifi dispatchPrepareOptionsMenu :es.josecarlos.myapplication.SearchWifi D/TextView: setTypeface with style : 0 D/TextView: setTypeface with style : 0 D/TextView: setTypeface with style : 0 setTypeface with style : 0 I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy#117c6e4b time:365818 D/ViewRootImpl: ViewPostImeInputStage ACTION_DOWN D/TextView: setTypeface with style : 0 D/TextView: setTypeface with style : 0 setTypeface with style : 0 D/TextView: setTypeface with style : 0 D/InputMethodManager: windowDismissed mLockisused = false
Solved. I had to add FINE_LOCATION to the manifest and: Manually give location permissions in Settings. or Make a popup that asks for location permissions the first time the user launch the app.
Closing cover produces a Re-layout
I have some problems with this log. When I close the cover of my phone it says this and my activity goes to next one when this should not happen. Is it possible to avoid this happening?? Avoid Relayout or focus changing?? It doesn't happen when in a Second phone with PIN number. (So i need to put the pin to unlock the phone). With no PIN so, phone is not locked, just closed the cover. When I open again and the activity restart, the activity had finished and went to next one. With the second phone, with PIN, when I close I have to put the PIN to enter again and in this case, the activity went in the normal way. D/InputMethodManager: prepareNavigationBarInfo() DecorView#670a516[Fer_Habit] getNavigationBarColor() -855310 V/InputMethodManager: Starting input: tba=com.example.gms ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : false , NavTrans : false D/InputMethodManager: startInputInner - Id : 0 I/InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus D/InputTransport: Input channel destroyed: 'ClientS', fd=129 V/FA: Recording user engagement, ms: 9675 V/FA: Connecting to remote service V/FA: Activity paused, time: 742123461 I/ViewRootImpl#e954868[Class1]: stopped(true) old=false D/OpenGLRenderer: makeCurrent EglSurface : 0x72a3179900 -> 0x0 V/FA: Connection attempt already in progress D/FA: Connected to remote service V/FA: Processing queued up service tasks: 2 D/OpenGLRenderer: destroyEglSurface : 0x72a3179900 I/mali_egl: eglDestroySurface() in I/mali_winsys: delete_surface() [2960x1440] return I/mali_egl: eglDestroySurface() out E/OpenGLRenderer: ReliableSurface: perform returned an error W/libEGL: EGLNativeWindowType 0x72e1651f50 disconnect failed D/OpenGLRenderer: ~ReliableSurface : 0x72e1651f40 I/ViewRootImpl#e954868[Class1]: Relayout returned: old=(0,0,2960,1440) new=(0,0,2960,1440) req=(2960,1440)8 dur=4 res=0x5 s={false 0} ch=false I/ViewRootImpl#e954868[Class1]: MSG_WINDOW_FOCUS_CHANGED 0 1 D/InputMethodManager: prepareNavigationBarInfo() DecorView#670a516[Class1] getNavigationBarColor() -855310
Place picker automatically closes after launching
My gradle implementation "com.google.android.gms:play-services-places:16.0.0" My manifest <meta-data android:name="com.google.android.geo.API_KEY" android:value="#string/map_api_key" /> My activity calling the map PlacePicker.IntentBuilder builder = new PlacePicker.IntentBuilder(); startActivityForResult(builder.build(this), PLACE_PICKER_REQUEST); This is my logcat while running the place picker 2019-01-01 11:57:58.771 24597-24597/com.labeyh.labeyh D/ViewRootImpl#924c3c7[AddressActivity]: ViewPostIme pointer 0 --------- beginning of system 2019-01-01 11:57:58.853 24597-24597/com.labeyh.labeyh D/ViewRootImpl#924c3c7[AddressActivity]: ViewPostIme pointer 1 2019-01-01 11:57:58.889 24597-24631/com.labeyh.labeyh V/FA: Recording user engagement, ms: 3006 2019-01-01 11:57:58.892 24597-24631/com.labeyh.labeyh V/FA: Activity paused, time: 433188100 2019-01-01 11:57:58.899 24597-24631/com.labeyh.labeyh D/FA: Logging event (FE): user_engagement(_e), Bundle[{firebase_event_origin(_o)=auto, engagement_time_msec(_et)=3006, firebase_screen_class(_sc)=AddressActivity, firebase_screen_id(_si)=-2529808333680378203}] 2019-01-01 11:57:58.908 24597-24597/com.labeyh.labeyh D/ViewRootImpl#924c3c7[AddressActivity]: MSG_WINDOW_FOCUS_CHANGED 0 2019-01-01 11:57:59.289 24597-24597/com.labeyh.labeyh D/InputTransport: Input channel destroyed: fd=71 2019-01-01 11:57:59.476 24597-24597/com.labeyh.labeyh D/ViewRootImpl#924c3c7[AddressActivity]: MSG_WINDOW_FOCUS_CHANGED 1 2019-01-01 11:57:59.478 24597-24597/com.labeyh.labeyh V/InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo#c8743f1 nm : com.labeyh.labeyh ic=null 2019-01-01 11:57:59.478 24597-24597/com.labeyh.labeyh I/InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus 2019-01-01 11:57:59.483 24597-24597/com.labeyh.labeyh D/InputTransport: Input channel constructed: fd=71 2019-01-01 11:57:59.486 24597-24631/com.labeyh.labeyh V/FA: Activity resumed, time: 433188696 2019-01-01 11:58:04.489 24597-24631/com.labeyh.labeyh V/FA: Inactivity, disconnecting from the service
This issue will be come if your api key is incorrect or you have not enable the place api over google console.