ios – MoEngage – React Native UIViewController that’s already being introduced

0
43


After following the instruction on the web site, I bought this error when I attempt to construct on iOS:

Thread 1: "Software tried to current modally a view controller <UIViewController: 0x7f90684afee0> that's already being introduced by <UIViewController: 0x7f906847c320>."

https://i.stack.imgur.com/7tUUE.png

cellphone error

Data.plist

<key>MoEngage</key>
<dict>
    <key>MoEngage_APP_ID</key>
    <string>...</string>
</dict>
...

AppDelegate.m

- (BOOL)software:(UIApplication *)software didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
...
  // Set Knowledge Heart
  [MoEngage setDataCenter:DATA_CENTER_01]; //DATA_CENTER_01, DATA_CENTER_02, OR DATA_CENTER_03
  
  [[MOReactInitializer sharedInstance] intializeSDKWithLaunchOptions:launchOptions];
  
  return YES;
}