feat: call function in ionic from capacitor IOS while app in background without opening app #5475
-
Feature Requestcall function from capacitor IOS while app in background without opening app DescriptionHI , I'm implementing Voip push notification from capacitor IOS project and it works perfect .my issue is I need to send to ionic/angular app about the incoming call if answered / declined while ionic app is closed (in background) without opening the ionic/angular app. for example I'm trying to do the following scenario : 1- Voip notification sent to capacitor IOS app Platform(s)ionic 5 Preferred Solutionmy question => Is there a capability to send data and call functions in ionic via capacitor while IOS app is closed ? AlternativesAdditional ContextRegards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Converting the issue to discussion since this is a question. In general, when the app goes into background the WebView stops executing javascript, so you can't do any native to JS communication if that happens. About how to send data or execute javascript from native, you can check app plugin, it uses notification center for listening for system and custom notifications |
Beta Was this translation helpful? Give feedback.
-
the issue is solved , in IOS the Voip push notification wakes up the app in background and I can see the app component code is working . Thank you |
Beta Was this translation helpful? Give feedback.
the issue is solved , in IOS the Voip push notification wakes up the app in background and I can see the app component code is working . Thank you