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

关闭极光

parent 897a6d8f
...@@ -27,7 +27,7 @@ class AppDelegate: UIResponder,UIApplicationDelegate,UNUserNotificationCenterDel ...@@ -27,7 +27,7 @@ class AppDelegate: UIResponder,UIApplicationDelegate,UNUserNotificationCenterDel
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch. // Override point for customization after application launch.
setting_Jpush(application: application, launchOptions: launchOptions) // setting_Jpush(application: application, launchOptions: launchOptions)
return true return true
...@@ -98,13 +98,13 @@ class AppDelegate: UIResponder,UIApplicationDelegate,UNUserNotificationCenterDel ...@@ -98,13 +98,13 @@ class AppDelegate: UIResponder,UIApplicationDelegate,UNUserNotificationCenterDel
// 注册deviceToken // 注册deviceToken
func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) { 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) { func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable: Any], fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) {
print("1",userInfo) print("1",userInfo)
JPUSHService.handleRemoteNotification(userInfo) // JPUSHService.handleRemoteNotification(userInfo)
completionHandler(.newData) completionHandler(.newData)
} }
...@@ -112,7 +112,7 @@ class AppDelegate: UIResponder,UIApplicationDelegate,UNUserNotificationCenterDel ...@@ -112,7 +112,7 @@ class AppDelegate: UIResponder,UIApplicationDelegate,UNUserNotificationCenterDel
// 接受数据 // 接受数据
func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable: Any]) { func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable: Any]) {
print("2",userInfo) print("2",userInfo)
JPUSHService.handleRemoteNotification(userInfo) // JPUSHService.handleRemoteNotification(userInfo)
} }
...@@ -123,7 +123,7 @@ class AppDelegate: UIResponder,UIApplicationDelegate,UNUserNotificationCenterDel ...@@ -123,7 +123,7 @@ class AppDelegate: UIResponder,UIApplicationDelegate,UNUserNotificationCenterDel
func applicationDidBecomeActive(_ application: UIApplication) { 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. // 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 UIApplication.shared.applicationIconBadgeNumber = 0
JPUSHService.setBadge(0) // JPUSHService.setBadge(0)
} }
// MARK: UISceneSession Lifecycle // MARK: UISceneSession Lifecycle
......
...@@ -119,9 +119,9 @@ class LoginViewController: BaseViewController, CodeViewDelegate,GeliAlertViewDel ...@@ -119,9 +119,9 @@ class LoginViewController: BaseViewController, CodeViewDelegate,GeliAlertViewDel
self.loginBtn.isLoading = false self.loginBtn.isLoading = false
self.delegate?.successLogin() self.delegate?.successLogin()
JPUSHService.setAlias(self.phoneTF.text, completion: { (resCode, alias, num) in // JPUSHService.setAlias(self.phoneTF.text, completion: { (resCode, alias, num) in
//
}, seq: 1433223) // }, seq: 1433223)
}) { (error) in }) { (error) in
self.loginBtn.isLoading = false 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