Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trigger event is not firing anything when app is in background but fires in foreground #1108

Closed
sajangurung2015 opened this issue Oct 3, 2016 · 10 comments

Comments

@sajangurung2015
Copy link

the trigger event is not firing anything when the app is in background but fires in foreground .. is trigger event not supposed to work in background ?

@pan100
Copy link

pan100 commented Oct 28, 2016

+1

1 similar comment
@Manikandan85
Copy link

+1

@Manikandan85
Copy link

Manikandan85 commented Nov 3, 2016

@sajangurung2015 Have you solved this issue?

@sajangurung2015
Copy link
Author

sajangurung2015 commented Nov 3, 2016

@Manikandan85 No, I have not been able to solve it .. I tried to make it happen using cordova background plugins too.. But everything runs in background not the TRIGGER event callback .... Some more researching led me to find out that it uses didRecieveLocalNotification ios delegate which runs in foreground only not in background ... so just want to know if the plugin author have some solution for this...

@Manikandan85
Copy link

Hi @sajangurung2015 ,

Thanks for the update. I too hope that there will be a solution for this. I will update here if I can able to fix this.

@sajangurung2015
Copy link
Author

sajangurung2015 commented Nov 4, 2016

@Manikandan85 my app strictly requires local notification .. so i am desperately searching for workaround for this ... but if ur app requirement is not as strict as mine , u can use remote push notification which provides you with handlers to perform background fetch upon recieving the remote notifications .... but in order to recieve push notification, it requires the device to be connected to internet ... so far i see no way to do so with local one ..

@estvmachine
Copy link

+1

@ryanjeric
Copy link

+1

@MeggSan
Copy link

MeggSan commented Oct 12, 2017

@sajangurung2015 Have you solved this issue now?

@katzer
Copy link
Owner

katzer commented Nov 1, 2017

@sajangurung2015 @MeggSan
The trigger event only works when app is running in foreground.

@katzer katzer closed this as completed Nov 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants