firebase推送
This commit is contained in:
parent
4f7de1fd76
commit
869c2bce06
@ -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
|
||||
|
||||
@ -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) {
|
||||
|
||||
@ -3,21 +3,23 @@
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CLIENT_ID</key>
|
||||
<string>133454098911-v67k58fn1e3ru8b4shuvs2gbpagi9t0d.apps.googleusercontent.com</string>
|
||||
<string>1008416471093-78jluae6d1tdl8l4qkul3hut7lckd1kc.apps.googleusercontent.com</string>
|
||||
<key>REVERSED_CLIENT_ID</key>
|
||||
<string>com.googleusercontent.apps.133454098911-v67k58fn1e3ru8b4shuvs2gbpagi9t0d</string>
|
||||
<string>com.googleusercontent.apps.1008416471093-78jluae6d1tdl8l4qkul3hut7lckd1kc</string>
|
||||
<key>ANDROID_CLIENT_ID</key>
|
||||
<string>1008416471093-e1a8gso0q6mpangmi7lltjilfmqeqp6u.apps.googleusercontent.com</string>
|
||||
<key>API_KEY</key>
|
||||
<string>AIzaSyBA0SFUeUZ5Y5ksznpMaskf5VOsO4rSrRc</string>
|
||||
<string>AIzaSyD7MGAPWg5qU0RwpoHL-0Z89U5pFGrPXx4</string>
|
||||
<key>GCM_SENDER_ID</key>
|
||||
<string>133454098911</string>
|
||||
<string>1008416471093</string>
|
||||
<key>PLIST_VERSION</key>
|
||||
<string>1</string>
|
||||
<key>BUNDLE_ID</key>
|
||||
<string>com.cobby.lonelysurvivor</string>
|
||||
<string>com.combo.heroes.puzzle.rpg</string>
|
||||
<key>PROJECT_ID</key>
|
||||
<string>lonely-survivor</string>
|
||||
<string>knights-combo</string>
|
||||
<key>STORAGE_BUCKET</key>
|
||||
<string>lonely-survivor.appspot.com</string>
|
||||
<string>knights-combo.appspot.com</string>
|
||||
<key>IS_ADS_ENABLED</key>
|
||||
<false></false>
|
||||
<key>IS_ANALYTICS_ENABLED</key>
|
||||
@ -29,6 +31,6 @@
|
||||
<key>IS_SIGNIN_ENABLED</key>
|
||||
<true></true>
|
||||
<key>GOOGLE_APP_ID</key>
|
||||
<string>1:133454098911:ios:15659a02894a675ca2546a</string>
|
||||
<string>1:1008416471093:ios:7bbb6d271c173ccd99d97c</string>
|
||||
</dict>
|
||||
</plist>
|
||||
Loading…
x
Reference in New Issue
Block a user