Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In App Sandbox does not work IOS Simulator - Flutter

I am trying to test my flutter in app implementation.

In itunesconnect->Users and Access->Testers (https://appstoreconnect.apple.com/access/testers), I added one sandbox user.

Then I launch the IOS simulator from Android Studio. Going through the steps to sign in, I always cant seem to sign in.

Could Not Sign In User name or password is incorrect

See the screenshots - https://imgur.com/a/lE2RiCp

I know the username and password is correct as I am able to sign in into apple id site (https://appleid.apple.com/#!&page=signin)

How can I resolve this sign in problem or what should I do to test (sandbox) in app on ios ?

like image 370
Axil Avatar asked Jun 08 '20 13:06

Axil


People also ask

Can I test IAP in simulator?

You can either add new IAP under same group, or create new group, or even delete the existing one. The final step now is making this configuration file is available for testing in the simulator. What you need to do is using the storekit in our debug options in our scheme.

Can we test in app purchase in IOS simulator?

It is impossible to make a purchase on a simulator (it is only possible to request a list of available purchases). To test purchases, you first need to set up products on App Store Connect and then use the user's sandbox environment and a real device. In this case, purchases for the developer are free.

Can in-app purchase sandbox accounts be used on iOS simulator?

To test your In App functionality against the In App Purchase sandbox, connect your device to your development workstation then choose iPhone Device as the Active SDK— the StoreKit APIs are not available in the iPhone simulator. So in-app purchase sandbox accounts cannot be used on iOS Simulator.

Does Xcode build&run work with flutter run?

Xcode build & run works, but flutter run does not start the app on the device. $ flutter run Launching lib/main.dart on iPhone X in debug mode...

How to debug a Flutter App with correct bundle identifier?

The command flutter build ios --debug --no-codesign --flavor dev seems to build a correct .app with the correct bundle identifier (the packaged Info.plist has the correct infos). The command flutter run --verbose --debug --flavor dev shows that the default bundle identifier is used for all the executed xcrun commands.

Why can’t I see the iOS simulators in Android Studio?

If you can’t see the iOS simulators in Android studio, you can follow these steps. This issue occurs mostly if you are using a new Mac system, you are updating XCode or you don’t have XCode installed. Let me show you what is the issue and how to fix it.


1 Answers

To test your In App functionality against the In App Purchase sandbox, connect your device to your development workstation then choose iPhone Device as the Active SDK—the StoreKit APIs are not available in the iPhone simulator.

See: https://developer.apple.com/news/?id=08282009a

So in-app purchase sandbox accounts cannot be used on iOS Simulator. You would have to connect an iOS device and link that with Android Studio. In that way, the app runs on a physical device. For this, you would need a Mac. Besides make sure you always take into account the following:

  • Always create a test account with an email address that is not associated with another Apple account
  • Remove all account details from the test device, before trying to use a sandbox account (otherwise another Apple account might actually be used for the purchase)
  • Confirming the email address after creating it might be a good idea (not sure whether that still is a thing, it used to be)
like image 111
dkreeft Avatar answered Oct 20 '22 19:10

dkreeft