Post

Replies

Boosts

Views

Activity

when data or notification is received inform server
I'm trying to achieve the functionality same like whatsapp, whenever message is delivered to the user the sender gets the double tick(Means message has been delivered). this works in all scenarios even if the app is killed. I'm sending push notification with extra data(notification id) which will be saved whenever notification is received. so I can save and inform server about the notification delivery status. for this I tried didReceiveRemoteNotification but it wont work always because once the app is killed (swiped from recent apps) than no more calls are going. Can I know the method how whatsapp is achieving this. Is there any method by which we can get the status of notification delivery even when app is killed.
1
0
690
Feb ’22
didReceiveRemoteNotification not called when app is killed
I'm trying to get notification data that whenever notification is received on Phone, it should update database that notification with this id is received. To achieve that i'm using didReceiveRemoteNotification call method which is working absolutely fine in foreground and background but once the app is removed(swiped) from recent apps section. I get message ("Terminated due to signal 9") and calls are not received on method didReceiveRemoteNotification How can I get this call to wakeup even when app is killed (swiped from recent apps). Or Is there any alternative way that I can use to get the notification received data with notification id with real time. func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable : Any], fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) { print("Remote call data is working") }
1
0
1.5k
Feb ’22
How we can iterate through all UItableview cells(visible & invisible) and get its property swift5
I'm able to get for visible but for invisible I'm getting null cell error or undefined cell let rowCount = tableView.numberOfRows(inSection: 0) or row in 1 ..< rowCount { let cellObj = tableView.cellForRow(at: NSIndexPath(row: row, section: 0) as IndexPath) as! selectVehTableViewCell selectedId.append(cellObj.vid.text!) }
Replies
1
Boosts
0
Views
1.6k
Activity
Feb ’22
when data or notification is received inform server
I'm trying to achieve the functionality same like whatsapp, whenever message is delivered to the user the sender gets the double tick(Means message has been delivered). this works in all scenarios even if the app is killed. I'm sending push notification with extra data(notification id) which will be saved whenever notification is received. so I can save and inform server about the notification delivery status. for this I tried didReceiveRemoteNotification but it wont work always because once the app is killed (swiped from recent apps) than no more calls are going. Can I know the method how whatsapp is achieving this. Is there any method by which we can get the status of notification delivery even when app is killed.
Replies
1
Boosts
0
Views
690
Activity
Feb ’22
didReceiveRemoteNotification not called when app is killed
I'm trying to get notification data that whenever notification is received on Phone, it should update database that notification with this id is received. To achieve that i'm using didReceiveRemoteNotification call method which is working absolutely fine in foreground and background but once the app is removed(swiped) from recent apps section. I get message ("Terminated due to signal 9") and calls are not received on method didReceiveRemoteNotification How can I get this call to wakeup even when app is killed (swiped from recent apps). Or Is there any alternative way that I can use to get the notification received data with notification id with real time. func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable : Any], fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) { print("Remote call data is working") }
Replies
1
Boosts
0
Views
1.5k
Activity
Feb ’22