Solved

iOS Enable Visual Labeling

  • 7 November 2022
  • 1 reply
  • 58 views

Badge +1

Quick iOS question. We already have an openURL method in our AppDelegate.m file. How do we add Heap? The ‘one-liner’ doesn’t make sense to me, but could someone help?
We have 2 similar methods.
Our current method:
 

- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url

  sourceApplication:(NSString *)sourceApplication annotation:(id)annotation

{

  [RNSplashScreen show];

 

  return [RCTLinkingManager

           application:application openURL:url

           sourceApplication:sourceApplication

           annotation:annotation

         ];

  

}

 

- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString *, id> *) options {

  if ([self.authorizationFlowManagerDelegate resumeExternalUserAgentFlowWithURL:url]) {

    return YES;

  }

  return [RCTLinkingManager application:app openURL:url options:options];

}

icon

Best answer by JerryHeap 8 November 2022, 17:56

View original

1 reply

Badge +1

It appears I left out that this is a React-Native app and I’m trying to follow the setup directions from:
https://developers.heap.io/docs/react-native
The part where the question comes in is that it says:
 

  • To pair visual labeling using an iOS QR code, you must complete the installation steps in Enable visual labeling pairing from the iOS Installation Guide.

It is following the “Enable visual labeling pairing” part that is hard to line up with our program, not sure if I have to do ALL the iOS setup including adding the framework to the project in XCODE or if that will be redundant.

Reply