196
Views
1
Comments
Solved
[Local Notifications Plugin] Schedule notification when iOS app is in background.
Question
local-notifications-plugin
Mobile icon
Forge asset by OutSystems

Hi,

In our app we want to display notification when user receives for example message while app is in background. On Android it works, but on iOS 10 not. Is it not working on iOS or I have to setup another plugin to keep app awake or something?

Thank you.

2020-12-15 11-23-41
César Afonso
Staff
Solution

Hello Nick.

As of today, when in background, iOS stops javascript execution. Android will keep running while the OS has resources available. To achieve what you want, you'll need a "keep alive" plugin (for example, the cordova-plugin-background-mode). There's a plugin in the Forge that wraps this.

Thanks

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.