[Local Notifications Plugin] Schedule notification when iOS app is in background.

[Local Notifications Plugin] Schedule notification when iOS app is in background.

  
Forge Component
(2)
Published on 2016-12-15 by OutSystems R&D
2 votes
Published on 2016-12-15 by OutSystems R&D

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.

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

Solution