Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login keeps coming back... #315

Closed
anykeysolutions opened this issue Oct 14, 2015 · 24 comments
Closed

Login keeps coming back... #315

anykeysolutions opened this issue Oct 14, 2015 · 24 comments

Comments

@anykeysolutions
Copy link

I use the plugin on a special purchase page. As soon as the user hits this page and store.refresh is called, the login for the app stores appears, which is fine. But if I go back to any other page, which doesn't use the plugin, hit the home button and go back to the app, the login appears again.

This behaviour doesn't stop. If I visited the purchase page once, every time I hit the home button and go back to the app, the login shows again. It can only be stopped if I close the application completly, If I reenter it, the problem is gone. Also, if I don't visit the purchase page, everything is fine.

But as soon as store.refresh is called, the problem exists again. I made sure, that I don't call store.refresh multiple times, I only call it once.

It looks like the app has to check something with the store every time I go back to the app. But I can't figure out, what the problem is and why it's calling the login every time.

Any suggestions?

@rotoxl
Copy link

rotoxl commented Oct 27, 2015

Hi,

same problem here. I have also used several sandbox users and everytime I get to the purchase screen it begins to ask for the password of those sandbox users

@Neh3maH
Copy link

Neh3maH commented Nov 3, 2015

Hi, Same problem here.

@saniyusuf
Copy link

same here any ideas what is wrong

@saniyusuf
Copy link

aapraently this is correct behaviour when you use a different account to buy the product from the one that is on the phone itslef

@Neh3maH
Copy link

Neh3maH commented Nov 5, 2015

Seriously, thanks a lot !
So it would be because I use the sandbox users instead of the real user of the phone ?

@saniyusuf
Copy link

based on my information that is correct. If you use a differnt user from the one the phone is tied to this will happen anytime you are about to use an app that calls that refresh which makes sense.

@saniyusuf
Copy link

@Neh3maH I have tested this theory and it does not seem to solve the issue. Can anyone confirm they have a fix and this is not a bug

@saniyusuf
Copy link

Hi Guys please use this link to the branch provided in this comment where there is a fix. You might have to delte your app completely from the phone and sign out restart you phone and even remove and re add the IOS project then run again after putting the fix. https://github.com/d3orn/cordova-plugin-purchase/tree/transactionFix

@rotoxl
Copy link

rotoxl commented Nov 11, 2015

Hi @saniyusuf,

gonna give it a try. It would be great news to have it working.

Anyway, comparing j3k0/master and the fixed stuff gives us only one difference at line 500

EDIT:
I'm sorry but it did not worked. Login warning keeps popping up. I followed all the steps described by @saniyusuf but no luck

@saniyusuf
Copy link

@rotoxl you might have to restore your phone for this to work like I had to on my test device.

@bwalsh
Copy link

bwalsh commented Nov 27, 2015

Tried this, but did not work. @saniyusuf exactly what steps did you take to get this to work?

@saniyusuf
Copy link

@bwalsh restore your test iphone then install the app

@bwalsh
Copy link

bwalsh commented Nov 27, 2015

@saniyusuf thank you. what do you mean by: "restore your test iphone"

@saniyusuf
Copy link

like restor it form settings. There is a cache problem you can get rid of this by trying soo many times or just storing your iphone like fatcory reset @bwalsh

@enricodeleo
Copy link

I reset to factory then restored my iPhone backup and I'm having the same behavior.
It is impossible to work because everytime I open the app products are flagged as bought (even if I click on cancel on the login prompt) and sometimes the login request pops randomly even when I'm on other apps.
Is it possible to reset all the logins and pending transactions at once ?

@bwalsh
Copy link

bwalsh commented Dec 27, 2015

Any news on fix &/or workaround? Any definitive word if it affects released apps?

@saniyusuf
Copy link

Fix is availablein v 4 of the plugin
On 27 Dec 2015 22:07, "bwalsh" notifications@github.com wrote:

Any news on fix &/or workaround? Any definitive word if it affects
released apps?


Reply to this email directly or view it on GitHub
#315 (comment)
.

@optikalefx
Copy link

I don't think this is fixed, My users still get asked for password randomly throughout app use

@glennkarlsen
Copy link

@optikalefx Your users? In production or testflight users?

@optikalefx
Copy link

Right now, testflight users. But it's hard for me to trust it in prod. You know?

@glennkarlsen
Copy link

Okey, thats "positive" I guess. No, I don't know. Just hoping it will work well in production.

@j3k0 j3k0 added the Backlog label May 26, 2016
@priyag676
Copy link

priyag676 commented May 5, 2017

@j3k0
Hi,
The issue mentioned above is also replicated on ionic app i.e. live on itunes app store, I am the using the previous version of the plugin.
AlexDisler/cordova-plugin-inapppurchase#138

@Dexus
Copy link
Collaborator

Dexus commented May 5, 2017

I can only reproduce it when I have my phone with multiple sandbox accounts and/or live accounts and buyed with different accounts the products. I think it has a reason why apple prefer to use a own test device.

@stale
Copy link

stale bot commented May 11, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label May 11, 2018
@stale stale bot closed this as completed Jun 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests