I have successfully implemented the Reply through notification for the query I asked [Swipe Buttons not coming for Remote notifications
My problem is that I do get a callback and I can do the necessary handling of the actions like fetching the text from text field and doing the necessary to send chat message without opening app from background 'when running' using this method:
- (void) application:(UIApplication *)application
handleActionWithIdentifier:(nullable NSString *)identifier
forRemoteNotification:(NSDictionary *)userInfo
withResponseInfo:(NSDictionary *)responseInfo
completionHandler:(void(^)())completionHandler
My issue is when the App is not in memory and not running in the background when home button pressed like scenario the Same Reply through notification is not sending chat.
I suspect that its not able to Connect XMPP --> Connect My DB -- > Send Data over XMPP when app totally not in background.
How to handle this. I want similar to whatsapp like when the app is even not switched on but on notification reply we can send a whatsapp message to other user and he gets it, similar Skype as well.
Am I missing in my understanding or have to do anything else.