chirag04 / react-native-in-app-utils

A react-native wrapper for handling in-app payments
MIT License
890 stars 185 forks source link

Using this library confuses the phone's Apple ID #46

Closed jpapillon closed 7 years ago

jpapillon commented 8 years ago

When I buy a subscription, I'm being asked to enter my iTunes password to make the purchase. Everything goes well and I can buy the subscription. (Except that sometimes I have to enter my password successfully multiple times)

However, things begin to behave strangely on my phone. I'm being asked for my iTunes password all the time. As if something happened that desynchronized my iTunes account with my iPhone.

Has anybody else noticed this behaviour? Thanks!

Froelund commented 8 years ago

@jpapillon I have the same issue.

adeelraza commented 8 years ago

+1

djw27 commented 7 years ago

Are you using a test user account rather than your personal apple ID?

Froelund commented 7 years ago

@djw27 I'm using my own account, and the products are not published.

rohitgoyal commented 7 years ago

+1

bbc4468 commented 7 years ago

@chirag04 - Can you please help?

chirag04 commented 7 years ago

I haven't been able to repro this. are you having different icloud account and apple id?

I would have to rely on the community to debug this.

chirag04 commented 7 years ago

AFAICT, this happens when for some reason the transaction is not cleared from the queue.

Can somebody confirm if this is happening is release mode also?

My guess is during local dev, a purchase is initiated and you stopped the xcode project. transaction was not cleared from the queue and ios will try to rerun that transaction.

jpapillon commented 7 years ago

@chirag04 Might be related to debug/staging builds. I don't hear about that problem with our prod releases.

dwilt commented 7 years ago

We're running to this in our projects as well. It doesn't seem to be affecting everyone though.. Scared to push it to production but curious because @jpapillon it saying it's not happening to them in production.

chirag04 commented 7 years ago

This happens while debugging when the transaction queue is not flushed properly. Manually stopping the Xcode run or crash while debugging can cause this

rikur commented 7 years ago

Sorry to continue on a closed issue, but this is still happening. On my TestFlight builds, when purchasing a subscription:

  1. I'm asked for my password
  2. I'm asked for my password again
  3. ..Normal subscription flow begins..
  4. I'm asked for my password once more for "TouchID".
  5. Subscription flow finishes succesfully.

From then on, I get randomly asked for my password. I know it's for the TestFlight app because it's the only TestFlight app on my phone and the password prompt says [Sandboxed].

This also happens to TestFlight beta-testers, so it doesn't seem to affect only debug builds.

dwilt commented 7 years ago

Ok, I think we have figured this out. Basically, if you are running your app through TestFlight and it's not been distributed through the App Store, any non-sandbox iTunes accounts will act wonky. We've noticed the multiple passwords being entered as well as purchasing just flat out not working. However, sandbox users that were created in iTunes connect had the correct user flow.

To follow-up, when we distributed that same exact build through the App Store everything worked perfectly for non-sandbox users and they weren't asked multiple times for their passwords.