Poolakey icon indicating copy to clipboard operation
Poolakey copied to clipboard

getPurchasedProducts returns empty list sometimes

Open RezaDizaji opened this issue 2 years ago • 14 comments

getPurchasedProducts returns empty list continuously right after a Bazaar login until next time users sign out of their account and sign in again. (I think this happens specially if login is done through 3rd party app and not the Bazaar app itself).

RezaDizaji avatar Oct 21 '22 08:10 RezaDizaji

If you are using a 3rd party application to log in Cafe Bazaar, you must start the init process of Poolakey from the beginning after the user login, so that Poolakey can identify that this user has logged in. I would be very happy if you could share your codes with us.

farhadrazzaghi avatar Jan 28 '23 11:01 farhadrazzaghi

Closing as no more info has been added to the issue. But feel free to reopen it if you think the problem will not be solved with Farhad's workaround.

DHosseiny avatar Feb 25 '23 17:02 DHosseiny

I found some additional and corrected information about the subject: I implemented the process in a way that Poolakey get initialized every time a request is being sent (exactly as @farhadrazzaghi said), but there was no success in solving the problem. The problem persists when it starts to occur. Even closing the app and opening it again after users log into Bazaar account doesn't solve the problem for them, the only solution is to log out of Bazaar account and log in again for Poolakey to return the correct information in relative callbacks.

RezaDizaji avatar Jul 22 '23 02:07 RezaDizaji

I found some additional and corrected information about the subject: I implemented the process in a way that Poolakey get initialized every time a request is being sent (exactly as @farhadrazzaghi said), but there was no success in solving the problem. The problem persists when it starts to occur. Even closing the app and opening it again after users log into Bazaar account doesn't solve the problem for them, the only solution is to log out of Bazaar account and log in again for Poolakey to return the correct information in relative callbacks.

Updated information yet again... .

RezaDizaji avatar Jul 26 '23 22:07 RezaDizaji

Please re-open the issue since this is not fixed yet. I found out the way to reproduce the issue and where it might be originated from.

After a purchase done, restart the device and try to get purchases from Bazaar, this ends up getting empty arrays for both in-app purchases and subscriptions, falsely. Very interestingly, this continues to happen until the user opens their profile screen in Bazaar app which from then onwards getting purchases returns correct values even if user had already closed the profile screen in Bazaar.

RezaDizaji avatar May 24 '24 20:05 RezaDizaji

Can you send your apps package name or link in bazaar's website?

DHosseiny avatar May 28 '24 11:05 DHosseiny

Here it is: ir.rezadizaji.aasa

RezaDizaji avatar May 28 '24 11:05 RezaDizaji

رضا جان من نتونستم بار تکرارش کنم مشکل رو با برنامه ی شما. ی اشتراک ۶ ماهه خریدم و هر بار میرم تو برنامه میگه اون اشتراک رو داری. اگر حالت خاصی داره لطفا بهمون بیشتر توضیح بده که حالتش چیه. کلا هم فکر میکنم تیکت زدن از طریق پشتیبانی ارتباطمون رو بهتر کنه. ممنون.

DHosseiny avatar May 29 '24 10:05 DHosseiny

البته من منظور شما راجب login is done through 3rd party app and not the Bazaar app itself رو متوجه نشدم. میتونی بیشتر توضیح بدی. اگر فیلم هم بتونی برامون بفرستی عالی میشه.

DHosseiny avatar May 29 '24 10:05 DHosseiny

رضا جان من نتونستم بار تکرارش کنم مشکل رو با برنامه ی شما. ی اشتراک ۶ ماهه خریدم و هر بار میرم تو برنامه میگه اون اشتراک رو داری. اگر حالت خاصی داره لطفا بهمون بیشتر توضیح بده که حالتش چیه. کلا هم فکر میکنم تیکت زدن از طریق پشتیبانی ارتباطمون رو بهتر کنه. ممنون.

از طریق پشتیبانی هم تیکت زدم و تیکت الان بازه. شما دستگاه رو ریستارت کنید و بعد بدون این که برنامه‌ی بازار رو باز کرده باشید بازگردانی خرید کنید. در این حالت تا وقتی کاربر صفحه‌ی حساب کاربری بازارشو باز نکرده باشه بازار برای برنامه برنمیگردونه خریدهای کاربر رو.

RezaDizaji avatar May 29 '24 11:05 RezaDizaji

البته من منظور شما راجب login is done through 3rd party app and not the Bazaar app itself رو متوجه نشدم. میتونی بیشتر توضیح بدی. اگر فیلم هم بتونی برامون بفرستی عالی میشه.

پیام بنده نیست اون پیام پیام همکارتونه.

RezaDizaji avatar May 29 '24 11:05 RezaDizaji

رضا جان من نتونستم بار تکرارش کنم مشکل رو با برنامه ی شما. ی اشتراک ۶ ماهه خریدم و هر بار میرم تو برنامه میگه اون اشتراک رو داری. اگر حالت خاصی داره لطفا بهمون بیشتر توضیح بده که حالتش چیه. کلا هم فکر میکنم تیکت زدن از طریق پشتیبانی ارتباطمون رو بهتر کنه. ممنون.

از طریق پشتیبانی هم تیکت زدم و تیکت الان بازه. شما دستگاه رو ریستارت کنید و بعد بدون این که برنامه‌ی بازار رو باز کرده باشید بازگردانی خرید کنید. در این حالت تا وقتی کاربر صفحه‌ی حساب کاربری بازارشو باز نکرده باشه بازار برای برنامه برنمیگردونه خریدهای کاربر رو.

من این رو هم روی samsung تست کردم، پیش نیومد. مشخصات گوشیی که این براش پیش میاد رو میگید لطفا؟

DHosseiny avatar Jun 05 '24 14:06 DHosseiny

مشکل روی هر دستگاهی رخ می‌دهد و پایدار است. من هم روی شبیه‌ساز و هم دو مدل گوشی سامسونگ با دو نوع پردازنده تست کردم و هم کاربران بنده با انواع دستگاه‌ها با مشکل دست و پنجه نرم می‌کنند. ویدیویی که گذاشتم کاملا گویای مشکل است. البته این کار در نسخه‌ی آخر برنامه ممکن نیست چون بنده محدودیت‌ها رو کاهش دادم تا کاربران کمتر اذیت شوند. ولی در نسخه‌های قبلی برنامه مطمئنا این مشکل را می‌توانید روی هر دستگاهی مشاهده کنید.

لینک ویدیو: https://s30.picofile.com/file/8476535050/Screen_Recording_1403_03_19_at_2_28_12_at_night_mp4.zip.html

RezaDizaji avatar Jun 07 '24 23:06 RezaDizaji