updating user device token and starting implementation for sending push notification device to device
This commit is contained in:
@@ -20,6 +20,7 @@ class InnerCircleViewModel: ObservableObject {
|
||||
|
||||
let cloudStorageService = CloudStorageService()
|
||||
let firestoreService = FirestoreService()
|
||||
let pushNotificationService = pushNotificationService()
|
||||
|
||||
init() {
|
||||
do {
|
||||
@@ -77,6 +78,8 @@ class InnerCircleViewModel: ObservableObject {
|
||||
self?.firestoreService.createMessage(message: newMessage) {[weak self] res in
|
||||
print(res)
|
||||
|
||||
// sending push notification
|
||||
|
||||
// delete local audio file from user's phone so that it doesn't get crazy
|
||||
print("stopped recording: file about to get deleted from \(self?.getTemporaryDirectory()) with filename: \(self?.audioLocalUrl)")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user