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

OneSignal_disable_badge_clearing #14

Open
romeoobane opened this issue Mar 10, 2017 · 7 comments
Open

OneSignal_disable_badge_clearing #14

romeoobane opened this issue Mar 10, 2017 · 7 comments
Labels

Comments

@romeoobane
Copy link

I would need to ask if it's possible to set "OneSignal_disable_badge_clearing" in iOS section of Application descriptor file of Adobe AIR? So far this setting seems to only work in XCode.

Kindly advice.

@marpies
Copy link
Owner

marpies commented Mar 10, 2017

I think you could add the following to InfoAdditions:

<key>OneSignal_disable_badge_clearing</key>
<false/>

@romeoobane
Copy link
Author

Thank you for the answer and I already managed to add in InfoAdditions with value that should not clear the badge or purge the other push alerts when the app is opened. I also extracted the .plist from the binary (.ipa) file and this property seems correctly added, but somehow the app still clears the badge and purges all the alerts when the app is opened for the first time.

@jkasten2
Copy link

@romeoobane @marpies OneSignal_disable_badge_clearing needs to be set to true to prevent the SDK from resetting the badge value when the app is resumed / opened.

@romeoobane
Copy link
Author

I've added the needed setting but still the badge value is reset when the app is resumed / opened:

onesignal_disable_badge_clearing

Please just let me know if you need more info on my project settings. Thank you!

@romeoobane
Copy link
Author

Should this setting be added directly in XCode .plist file and then rebuild the ANE?

@marpies
Copy link
Owner

marpies commented Mar 17, 2017

No, it needs to be set in the app descriptor XML.

I tested this myself and indeed the setting does not have an effect in AIR app. The problem is with AIR as it seems to reset the badge automatically. You can try creating a feature request and collect votes.

@romeoobane
Copy link
Author

Thank you so much for testing on your side and for the clarification.

I'll try to create a feature request for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants