onesignal-ane icon indicating copy to clipboard operation
onesignal-ane copied to clipboard

OneSignal_disable_badge_clearing

Open romeoobane opened this issue 7 years ago • 7 comments

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.

romeoobane avatar Mar 10 '17 07:03 romeoobane

I think you could add the following to InfoAdditions:

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

marpies avatar Mar 10 '17 09:03 marpies

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.

romeoobane avatar Mar 10 '17 14:03 romeoobane

@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.

jkasten2 avatar Mar 10 '17 20:03 jkasten2

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 avatar Mar 14 '17 05:03 romeoobane

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

romeoobane avatar Mar 16 '17 09:03 romeoobane

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.

marpies avatar Mar 17 '17 09:03 marpies

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

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

romeoobane avatar Mar 17 '17 10:03 romeoobane