From a2ec178456a82cd4eb8fc60f02131d0d1ab16a62 Mon Sep 17 00:00:00 2001 From: Benjamin Elo Date: Wed, 28 Aug 2019 05:03:04 -0700 Subject: [PATCH] Added ability to navigate to deeplinks for iOS Summary: Added ability to navigate to deeplinks from Flipper for iOS. This is done through the "xcrun simctl" command, much like how we handle screenshots on iOS. Reviewed By: passy Differential Revision: D17071428 fbshipit-source-id: 86cb375e750e89ddf598a42ce33d3099bb08803a --- src/devices/IOSDevice.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/devices/IOSDevice.tsx b/src/devices/IOSDevice.tsx index a489bcf1f..9389f8a8b 100644 --- a/src/devices/IOSDevice.tsx +++ b/src/devices/IOSDevice.tsx @@ -60,6 +60,11 @@ export default class IOSDevice extends BaseDevice { }); } + navigateToLocation(location: string) { + const command = `xcrun simctl openurl booted "${location}"`; + exec(command); + } + teardown() { if (this.log) { this.log.kill();