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
668
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.4k
Feb ’22
How to read string from printwriter from java server to swift client through stream
hi all  I am new in swift and i want read string from java server to swift client through stream but its giving me -1 here is my server code in java try { out = new PrintWriter(new BufferedWriter( new OutputStreamWriter(tempClientSocket.getOutputStream())), true); } catch (IOException e) { e.printStackTrace(); } out.println("hello world"); here is my client code in swift let dataCount = data.count let bytesWritten = data.withUnsafeBytes { (p: UnsafePointer<UInt8>) -> Int in return streams.outputStream.write(p, maxLength: dataCount) when i print stream delegate event code outputOpenCompleted: outputHasSpaceAvailable: is printing but no any printi9ng is coming for inputstream on inputStream.read meassage is like that ** SocketStream read error [0x28173c000]: 1 60** Please please help me as soon as possibloe
0
0
605
Aug ’21
release mode in simulator
how to run flutter project with release mode in simulator
Replies
0
Boosts
0
Views
477
Activity
Feb ’24
App Store rejected my app
The app stucks on launch page when they tested in iPad Air 5th generation and iOS version 17.3.1 I tested the application in all available simulators
Replies
0
Boosts
1
Views
582
Activity
Feb ’24
i updated my xcode from 13 to 14 and i'm getting 0__abort_with_payload error
My project was working 100% fine on xcode13 but when i updated my MAC OS from big sur to monterey and my Xcode from 13 to 14. my app crashes on start. and below are the highlighted error pages and screen shots Please let me know any possible solution to make the app it run
Replies
4
Boosts
0
Views
527
Activity
Mar ’23
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
668
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.4k
Activity
Feb ’22
How to read string from printwriter from java server to swift client through stream
hi all  I am new in swift and i want read string from java server to swift client through stream but its giving me -1 here is my server code in java try { out = new PrintWriter(new BufferedWriter( new OutputStreamWriter(tempClientSocket.getOutputStream())), true); } catch (IOException e) { e.printStackTrace(); } out.println("hello world"); here is my client code in swift let dataCount = data.count let bytesWritten = data.withUnsafeBytes { (p: UnsafePointer<UInt8>) -> Int in return streams.outputStream.write(p, maxLength: dataCount) when i print stream delegate event code outputOpenCompleted: outputHasSpaceAvailable: is printing but no any printi9ng is coming for inputstream on inputStream.read meassage is like that ** SocketStream read error [0x28173c000]: 1 60** Please please help me as soon as possibloe
Replies
0
Boosts
0
Views
605
Activity
Aug ’21