按照网站上的说明进行操作后,当我尝试在 iOS 上构建时出现此错误:
Thread 1: "Application tried to present modally a view controller <UIViewController: 0x7f90684afee0> that is already being presented by <UIViewController: 0x7f906847c320>."
https://i.stack.imgur.com/7tUUE.png
Info.plist
<key>MoEngage</key>
<dict>
<key>MoEngage_APP_ID</key>
<string>...</string>
</dict>
...
AppDelegate.m
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
...
// Set Data Center
[MoEngage setDataCenter:DATA_CENTER_01]; //DATA_CENTER_01, DATA_CENTER_02, OR DATA_CENTER_03
[[MOReactInitializer sharedInstance] intializeSDKWithLaunchOptions:launchOptions];
return YES;
}