Commit 23945752 authored by 刘俊宏's avatar 刘俊宏

关闭极光

parent 897a6d8f
......@@ -27,7 +27,7 @@ class AppDelegate: UIResponder,UIApplicationDelegate,UNUserNotificationCenterDel
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
setting_Jpush(application: application, launchOptions: launchOptions)
// setting_Jpush(application: application, launchOptions: launchOptions)
return true
......@@ -98,13 +98,13 @@ class AppDelegate: UIResponder,UIApplicationDelegate,UNUserNotificationCenterDel
// 注册deviceToken
func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
JPUSHService.registerDeviceToken(deviceToken)
// JPUSHService.registerDeviceToken(deviceToken)
}
// 接受数据
func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable: Any], fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) {
print("1",userInfo)
JPUSHService.handleRemoteNotification(userInfo)
// JPUSHService.handleRemoteNotification(userInfo)
completionHandler(.newData)
}
......@@ -112,7 +112,7 @@ class AppDelegate: UIResponder,UIApplicationDelegate,UNUserNotificationCenterDel
// 接受数据
func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable: Any]) {
print("2",userInfo)
JPUSHService.handleRemoteNotification(userInfo)
// JPUSHService.handleRemoteNotification(userInfo)
}
......@@ -123,7 +123,7 @@ class AppDelegate: UIResponder,UIApplicationDelegate,UNUserNotificationCenterDel
func applicationDidBecomeActive(_ application: UIApplication) {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
UIApplication.shared.applicationIconBadgeNumber = 0
JPUSHService.setBadge(0)
// JPUSHService.setBadge(0)
}
// MARK: UISceneSession Lifecycle
......
......@@ -119,9 +119,9 @@ class LoginViewController: BaseViewController, CodeViewDelegate,GeliAlertViewDel
self.loginBtn.isLoading = false
self.delegate?.successLogin()
JPUSHService.setAlias(self.phoneTF.text, completion: { (resCode, alias, num) in
}, seq: 1433223)
// JPUSHService.setAlias(self.phoneTF.text, completion: { (resCode, alias, num) in
//
// }, seq: 1433223)
}) { (error) in
self.loginBtn.isLoading = false
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment