Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Event not fired when in background #24

Closed
lucadegasperi opened this issue Jul 2, 2015 · 6 comments
Closed

Event not fired when in background #24

lucadegasperi opened this issue Jul 2, 2015 · 6 comments
Labels
Milestone

Comments

@lucadegasperi
Copy link

Hello,

I'm developing an iOS app and the notifications appear on the device regularly, problem is the application badge doesn't appear, despite it being in the notification payload. Logging in the lldb console reveals that the function never gets called when in background.

Do I need to set any flag or move the plugin outside the device ready event?

I'm running iOS 7.1 on an iPhone 4.

@macdonst
Copy link
Member

macdonst commented Jul 6, 2015

@lucadegasperi I can't seem to reproduce this problem. When I send:

{
    "aps" : {
        "alert" : "You got your emails.",
        "badge" : 9
    }
}

The badge is correctly updated. However, I have noticed if I put quotes around the number 9 then it does not work as we are expecting a number not a string.

@lucadegasperi
Copy link
Author

I mean, are there differences between iOS7 and iOS8 way of handling notifications? because the notification pops on the device but no badge is set.

@macdonst
Copy link
Member

macdonst commented Jul 6, 2015

@lucadegasperi it should work the same. My iOS 7 device is at home right now so I can't test until tomorrow.

@lucadegasperi
Copy link
Author

Thanks :) if it works i would love to see the code you used to make the test. Thanks again!

@macdonst macdonst added the bug label Jul 7, 2015
@macdonst macdonst added this to the Release 1.1.0 milestone Jul 7, 2015
@macdonst
Copy link
Member

macdonst commented Jul 7, 2015

@lucadegasperi Yeah, I was able to reproduce it. I'll be checking in a fix shortly and will get a new release out this week.

macdonst added a commit that referenced this issue Jul 7, 2015
On iOS 7 the badge was not appearing.
@macdonst macdonst closed this as completed Jul 7, 2015
@lock
Copy link

lock bot commented Jun 5, 2018

This thread has been automatically locked.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

2 participants