Proyectos de Subversion Iphone Microlearning - Nuevo Interface

Rev

Rev 23 | Rev 25 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 23 Rev 24
Línea 152... Línea 152...
152
        let timeOn = dateFormatter.string(from: now)
152
        let timeOn = dateFormatter.string(from: now)
Línea 153... Línea 153...
153
        
153
        
154
        let userNotificationDao = UserNotificationDao.sharedInstance
154
        let userNotificationDao = UserNotificationDao.sharedInstance
Línea 155... Línea 155...
155
        var userNotification : UserNotificationModel
155
        var userNotification : UserNotificationModel
156
        
156
        
157
        
157
        /*
Línea 158... Línea 158...
158
        if Config.DEBUG {
158
        if Config.DEBUG && !appData.userUuid.isEmpty {
159
            userNotification = UserNotificationModel(userUuid: appData.userUuid, title: "userInfo", body: "\(userInfo)", viewed: 0, url: "", dateOn: dateOn, timeOn: timeOn)
159
            userNotification = UserNotificationModel(userUuid: appData.userUuid, title: "userInfo", body: "\(userInfo)", viewed: 0, url: "", dateOn: dateOn, timeOn: timeOn)
-
 
160
            
-
 
161
 
-
 
162
            userNotificationDao.insert(userNotification: userNotification)
-
 
163
        }
-
 
164
         */
Línea 160... Línea 165...
160
            
165
        
161
 
166
        guard let apsDict = userInfo["aps"]as?[String:Any] else {return}
162
            userNotificationDao.insert(userNotification: userNotification)
167
        guard let alertDict = apsDict["alert"]as?[String:Any]else {return}
163
        }
168
        
164
        
169