diff --git a/Assets/Editor/Package.cs b/Assets/Editor/Package.cs index 68d159fa9..7e9796f1d 100644 --- a/Assets/Editor/Package.cs +++ b/Assets/Editor/Package.cs @@ -29,8 +29,8 @@ public class Package { #region string projPath = Path.GetFullPath(pathToBuiltProject); //添加推送和其他的有点不一样,需要添加一个文件。这个文件只能考进去。或者事先准备好了Base.entitlements 文件,文件类容 就是你手动添加进去的内容,你手动添加完成后生成的那个文件 - // string entitlement = Application.dataPath + "/Editor/entitlement.entitlements"; - // File.Copy (entitlement, pathToBuiltProject + "/Unity-iPhone/entitlement.entitlements"); + string entitlement = Application.dataPath + "/Editor/entitlement.entitlements"; + File.Copy (entitlement, pathToBuiltProject + "/Unity-iPhone/entitlement.entitlements"); //Max Ad Review service File.Copy(Application.dataPath + "/ThirdParty/MaxSdk/AppLovin/Editor/AppLovinQualityServiceSetup-ios.rb", pathToBuiltProject + "/AppLovinQualityServiceSetup-ios.rb"); @@ -38,17 +38,17 @@ public class Package { project.AddCapability(targetGuid, PBXCapabilityType.AssociatedDomains, pathToBuiltProject + "/Unity-iPhone/entitlement.entitlements", true); // Enable Push Notifications - // project.AddFrameworkToProject (targetGuid_Framework, "UserNotifications.framework", false); + project.AddFrameworkToProject (targetGuid_Framework, "UserNotifications.framework", false); // Enable background mode // project.AddCapability (targetGuid, PBXCapabilityType.BackgroundModes); #region google service plist file // google service - // string googleServicePath = Application.dataPath + "/Plugins/iOS/GoogleService-Info.plist"; - // File.Copy(googleServicePath, pathToBuiltProject + "/GoogleService-Info.plist"); + string googleServicePath = Application.dataPath + "/Plugins/iOS/GoogleService-Info.plist"; + File.Copy(googleServicePath, pathToBuiltProject + "/GoogleService-Info.plist"); - // project.AddFileToBuild(targetGuid, project.AddFile("GoogleService-Info.plist", "GoogleService-Info.plist", PBXSourceTree.Source)); + project.AddFileToBuild(targetGuid, project.AddFile("GoogleService-Info.plist", "GoogleService-Info.plist", PBXSourceTree.Source)); #endregion // Add background modes diff --git a/Assets/Plugins/iOS/CustomAppController.mm b/Assets/Plugins/iOS/CustomAppController.mm index dd512871b..27c89813d 100644 --- a/Assets/Plugins/iOS/CustomAppController.mm +++ b/Assets/Plugins/iOS/CustomAppController.mm @@ -12,9 +12,9 @@ IMPL_APP_CONTROLLER_SUBCLASS (CustomAppController) - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [super application:application didFinishLaunchingWithOptions:launchOptions]; - // [[FirebaseSDK getInstance] initialize]; + [[FirebaseSDK getInstance] initialize]; // [START set_messaging_delegate] - // [FIRMessaging messaging].delegate = self; + [FIRMessaging messaging].delegate = self; // [END set_messaging_delegate] if ([UNUserNotificationCenter class] != nil) { diff --git a/Assets/Plugins/iOS/GoogleService-Info.plist b/Assets/Plugins/iOS/GoogleService-Info.plist index c658e16fd..3bff05fb2 100644 --- a/Assets/Plugins/iOS/GoogleService-Info.plist +++ b/Assets/Plugins/iOS/GoogleService-Info.plist @@ -3,21 +3,23 @@ CLIENT_ID - 133454098911-v67k58fn1e3ru8b4shuvs2gbpagi9t0d.apps.googleusercontent.com + 1008416471093-78jluae6d1tdl8l4qkul3hut7lckd1kc.apps.googleusercontent.com REVERSED_CLIENT_ID - com.googleusercontent.apps.133454098911-v67k58fn1e3ru8b4shuvs2gbpagi9t0d + com.googleusercontent.apps.1008416471093-78jluae6d1tdl8l4qkul3hut7lckd1kc + ANDROID_CLIENT_ID + 1008416471093-e1a8gso0q6mpangmi7lltjilfmqeqp6u.apps.googleusercontent.com API_KEY - AIzaSyBA0SFUeUZ5Y5ksznpMaskf5VOsO4rSrRc + AIzaSyD7MGAPWg5qU0RwpoHL-0Z89U5pFGrPXx4 GCM_SENDER_ID - 133454098911 + 1008416471093 PLIST_VERSION 1 BUNDLE_ID - com.cobby.lonelysurvivor + com.combo.heroes.puzzle.rpg PROJECT_ID - lonely-survivor + knights-combo STORAGE_BUCKET - lonely-survivor.appspot.com + knights-combo.appspot.com IS_ADS_ENABLED IS_ANALYTICS_ENABLED @@ -29,6 +31,6 @@ IS_SIGNIN_ENABLED GOOGLE_APP_ID - 1:133454098911:ios:15659a02894a675ca2546a + 1:1008416471093:ios:7bbb6d271c173ccd99d97c \ No newline at end of file