From e81111af2f2dd30da13be8ac14f8fb360ba1178f Mon Sep 17 00:00:00 2001
From: allez <305670599@qq.com>
Date: 星期三, 18 五月 2022 16:30:13 +0800
Subject: [PATCH] 0312 代码移至UnityAppController.mm
---
Channel/IOS/sohagame/Plugins/The2thWorldSDK/UniversalSDK.mm | 57 +++------------------------------------------------------
1 files changed, 3 insertions(+), 54 deletions(-)
diff --git a/Channel/IOS/sohagame/Plugins/The2thWorldSDK/UniversalSDK.mm b/Channel/IOS/sohagame/Plugins/The2thWorldSDK/UniversalSDK.mm
index 1521eaf..17a3a5f 100644
--- a/Channel/IOS/sohagame/Plugins/The2thWorldSDK/UniversalSDK.mm
+++ b/Channel/IOS/sohagame/Plugins/The2thWorldSDK/UniversalSDK.mm
@@ -223,67 +223,16 @@
[Soha showInAppPopupTracking];
}
-- (UIInterfaceOrientationMask)application:(UIApplication*)application supportedInterfaceOrientationsForWindow:(UIWindow*)window
-{
-// return UIInterfaceOrientationMaskAll;
-// return UIInterfaceOrientationMaskPortrait;
- return UIInterfaceOrientationMaskLandscape;
-}
-
-- (BOOL)application:(UIApplication *)app
- openURL:(NSURL *)url
- options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options{
- return [Soha application:app
- openURL:url
- options:options];
-}
-
-- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void (^)(NSArray<id<UIUserActivityRestoring>> * _Nullable))restorationHandler{
- return [Soha application:application
- continueUserActivity:userActivity
- restorationHandler:restorationHandler];
-}
-
-- (void)applicationDidEnterBackground:(UIApplication *)application
-{
- // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
- // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
- [Soha sohaHandleDidEnterBackground];
-}
-
-- (void)applicationWillEnterForeground:(UIApplication *)application
-{
- // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
- [Soha sohaHandleDidEnterForeground];
-}
-
-- (void)applicationDidBecomeActive:(UIApplication *)application
-{
- /*
- Need for facebook
- */
- [Soha sohaHandleDidBecomeActive];
-}
-
-- (void)applicationWillTerminate:(UIApplication *)application
-{
- /*
- Need for facebook
- */
- [Soha sohaHandleWillTerminate];
-}
-
-
-- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
- [Soha sohaPostDeviceToken:deviceToken];
-}
+
- (void)userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void (^)(void))completionHandler{
[Soha userNotificationCenter:center didReceiveNotificationResponse:response];
}
+
- (void)userNotificationCenter:(UNUserNotificationCenter *)center willPresentNotification:(UNNotification *)notification withCompletionHandler:(void (^)(UNNotificationPresentationOptions))completionHandler{
[Soha userNotificationCenter:center willPresentNotification:notification];
}
+
- (void)sohaDeleteAccountDelegate:(SohaUser *)user
{
NSLog(@"鍒犻櫎瑙掕壊 callback");
--
Gitblit v1.8.0