Reputation: 67
My app using in-app purchase , iap seeing like this on simulator ;
It's fine working right. But on my iPhone like this ;
What I'm suppose to do ? I want to work right.
Upvotes: 0
Views: 110
Reputation: 318914
Your code is working fine. When you ran your app in the simulator, you were not yet logged into your iTunes account so iOS asked you whether you wanted to create a new id or use an existing one.
On your iPhone, you were already setup with an id so it simply asked you for our password to that id.
This is all normal and working as expected. If, on the iPhone, you want to see the same message that you see in the simulator, you need to log out of your account. Run the Settings app and go to "iTunes & App Store". Then tap on your Apple ID. An alert appears with different options. Choose "Sign Out". Now when you run your app, you will see the dialog with just like you see on the simulator.
Of course once you log into an account on the simulator (or the iPhone), then you will see just the password dialog in the future.
Upvotes: 1