ilan Expert Licensed User Longtime User Dec 4, 2022 #1 hi i try to add an inapp subscription to my app but i fail. is there an example on how to do it? i only find part code but not a full example. thanx
hi i try to add an inapp subscription to my app but i fail. is there an example on how to do it? i only find part code but not a full example. thanx
Erel B4X founder Staff member Licensed User Longtime User Dec 5, 2022 #2 The important change for subscription orders is here: https://www.b4x.com/android/forum/t...-due-to-google-restriction.142524/post-903185 Upvote 0
The important change for subscription orders is here: https://www.b4x.com/android/forum/t...-due-to-google-restriction.142524/post-903185
ilan Expert Licensed User Longtime User Dec 5, 2022 #3 Erel said: The important change for subscription orders is here: https://www.b4x.com/android/forum/t...-due-to-google-restriction.142524/post-903185 Click to expand... yes i use this code but i have 2 issues. 1, i dont understand how to verify if the user has already subscribed? (i also change inapp to subs to make it work) 2, for some reason i set the subscription for /month but in the app it shows /5 minutes ? so i guess i do something wrong Upvote 0
Erel said: The important change for subscription orders is here: https://www.b4x.com/android/forum/t...-due-to-google-restriction.142524/post-903185 Click to expand... yes i use this code but i have 2 issues. 1, i dont understand how to verify if the user has already subscribed? (i also change inapp to subs to make it work) 2, for some reason i set the subscription for /month but in the app it shows /5 minutes ? so i guess i do something wrong
aeric Expert Licensed User Longtime User Dec 5, 2022 #4 Are you using test subscription? Last edited: Dec 5, 2022 Upvote 0
ilan Expert Licensed User Longtime User Dec 5, 2022 #5 thanx @aeric for your reply, i am using Test Card like in your pic so i guess this is my i also get / 5 minutes. so with a real card it will show correctly right? second question how is the check process done? to see if the user is subscribed if not show the subscribe dialog thanx Upvote 0
thanx @aeric for your reply, i am using Test Card like in your pic so i guess this is my i also get / 5 minutes. so with a real card it will show correctly right? second question how is the check process done? to see if the user is subscribed if not show the subscribe dialog thanx
aeric Expert Licensed User Longtime User Dec 5, 2022 #6 ilan said: so with a real card it will show correctly right? Click to expand... Not sure but I think it should be yes. ilan said: to see if the user is subscribed if not show the subscribe dialog Click to expand... It is same for subs and inapp product. B4X: Copy If p.IsAcknowledged = False Then 'we either acknowledge the product or consume it. Wait For (billing.AcknowledgePurchase(p.PurchaseToken, "")) Billing_AcknowledgeCompleted (Result As BillingResult) Log("Acknowledged: " & Result.IsSuccess) End If Upvote 0
ilan said: so with a real card it will show correctly right? Click to expand... Not sure but I think it should be yes. ilan said: to see if the user is subscribed if not show the subscribe dialog Click to expand... It is same for subs and inapp product. B4X: Copy If p.IsAcknowledged = False Then 'we either acknowledge the product or consume it. Wait For (billing.AcknowledgePurchase(p.PurchaseToken, "")) Billing_AcknowledgeCompleted (Result As BillingResult) Log("Acknowledged: " & Result.IsSuccess) End If
asales Expert Licensed User Longtime User Dec 5, 2022 #7 ilan said: thanx @aeric for your reply, i am using Test Card like in your pic so i guess this is my i also get / 5 minutes. so with a real card it will show correctly right? Click to expand... Yes. 1 month = 5 min: Test your Google Play Billing Library integration | Android Developers This document outlines various methods and tools for testing Google Play Billing Library integration during Android app development, covering one-time products, subscriptions, promo codes, and regional purchase experiences. developer.android.com Upvote 0
ilan said: thanx @aeric for your reply, i am using Test Card like in your pic so i guess this is my i also get / 5 minutes. so with a real card it will show correctly right? Click to expand... Yes. 1 month = 5 min: Test your Google Play Billing Library integration | Android Developers This document outlines various methods and tools for testing Google Play Billing Library integration during Android app development, covering one-time products, subscriptions, promo codes, and regional purchase experiences. developer.android.com
aeric Expert Licensed User Longtime User Dec 5, 2022 #8 asales said: Yes. 1 month = 5 min: Test your Google Play Billing Library integration | Android Developers This document outlines various methods and tools for testing Google Play Billing Library integration during Android app development, covering one-time products, subscriptions, promo codes, and regional purchase experiences. developer.android.com View attachment 136761 Click to expand... I know this but I can’t be sure because I don’t have actual App that provide subscription in Google Play. Upvote 0
asales said: Yes. 1 month = 5 min: Test your Google Play Billing Library integration | Android Developers This document outlines various methods and tools for testing Google Play Billing Library integration during Android app development, covering one-time products, subscriptions, promo codes, and regional purchase experiences. developer.android.com View attachment 136761 Click to expand... I know this but I can’t be sure because I don’t have actual App that provide subscription in Google Play.
ilan Expert Licensed User Longtime User Dec 5, 2022 #9 aeric said: Not sure but I think it should be yes. It is same for subs and inapp product. B4X: Copy If p.IsAcknowledged = False Then 'we either acknowledge the product or consume it. Wait For (billing.AcknowledgePurchase(p.PurchaseToken, "")) Billing_AcknowledgeCompleted (Result As BillingResult) Log("Acknowledged: " & Result.IsSuccess) End If Click to expand... thanx i will try it. asales said: Yes. 1 month = 5 min: Test your Google Play Billing Library integration | Android Developers This document outlines various methods and tools for testing Google Play Billing Library integration during Android app development, covering one-time products, subscriptions, promo codes, and regional purchase experiences. developer.android.com View attachment 136761 Click to expand... thank you, this information is what i needed Upvote 0
aeric said: Not sure but I think it should be yes. It is same for subs and inapp product. B4X: Copy If p.IsAcknowledged = False Then 'we either acknowledge the product or consume it. Wait For (billing.AcknowledgePurchase(p.PurchaseToken, "")) Billing_AcknowledgeCompleted (Result As BillingResult) Log("Acknowledged: " & Result.IsSuccess) End If Click to expand... thanx i will try it. asales said: Yes. 1 month = 5 min: Test your Google Play Billing Library integration | Android Developers This document outlines various methods and tools for testing Google Play Billing Library integration during Android app development, covering one-time products, subscriptions, promo codes, and regional purchase experiences. developer.android.com View attachment 136761 Click to expand... thank you, this information is what i needed
aeric Expert Licensed User Longtime User Dec 5, 2022 #10 ilan said: thanx i will try it. thank you, this information is what i needed Click to expand... The information is available when you tap on this schedule in the image. Upvote 0
ilan said: thanx i will try it. thank you, this information is what i needed Click to expand... The information is available when you tap on this schedule in the image.
ilan Expert Licensed User Longtime User Dec 5, 2022 #11 aeric said: The information is available when you tap on this schedule in the image. Click to expand... thank i missed that. now i will need to see if the checking is working well and i can finish my app Upvote 0
aeric said: The information is available when you tap on this schedule in the image. Click to expand... thank i missed that. now i will need to see if the checking is working well and i can finish my app