diff --git a/apps/ios/Podfile b/apps/ios/Podfile index 2bffe4c7..4cf211d3 100644 --- a/apps/ios/Podfile +++ b/apps/ios/Podfile @@ -9,6 +9,5 @@ target 'cleverrc' do # Pods for cleverrc pod 'SwiftSocket', '~> 2.0' - pod 'NotificationBannerSwift' end diff --git a/apps/ios/cleverrc/ViewController.swift b/apps/ios/cleverrc/ViewController.swift index b8fb8721..b2eced68 100644 --- a/apps/ios/cleverrc/ViewController.swift +++ b/apps/ios/cleverrc/ViewController.swift @@ -62,15 +62,7 @@ class ViewController: UIViewController, WKScriptMessageHandler { } else if (message.name == "notification") { // Got notification message print(message) - let m = message.body as! NSDictionary; - let level = m["severity"] as! Int - if level == 4 { - let banner = NotificationBanner(title: m["text"] as! String, style: .warning) - banner.show() - } else { - let banner = NotificationBanner(title: m["text"] as! String, style: .danger) - banner.show() - } + tapticNotify() } } diff --git a/apps/ios/cleverrc/index.html b/apps/ios/cleverrc/index.html index 391ef631..b6cca6db 100644 --- a/apps/ios/cleverrc/index.html +++ b/apps/ios/cleverrc/index.html @@ -17,6 +17,7 @@
+