Tech Tip: How to obtain Simulator ID to test push notifications
PRODUCT: 4D for iOS | VERSION: 18 R | PLATFORM: Mac
Published On: May 25, 2021
The Simulator application is a tool used in 4D for iOS development to test the mobile project’s features. Once the project is built and run, Simulator would run and simulate how the 4D for iOS app would appear and function to end users. In some scenarios, such as when testing push notifications features, it is necessary to obtain the ID for the particular Simulator instance. To do this, open the Terminal application and run the following command:
xcrun simctl list devices | grep Booted
This command will display (by assigned name or iPhone model) all instances of Simulator that are currently booted, and their Simulator IDs. An ID could then be used as a recipient to test push notifications or deep linking in the mobile project.