Hi Rob,

Like Matthias already told you on Android managing notifications and changing how they look is much simpler then on iOS. On iOS you can cancel all the remote notifications, but not some.

Corrine had this idea: send your notifications as 'background notifications' (e.g. 'content-available' flag set) then your app will be notified, but nothing will show up in the Notification area. You can use local notifications to create the notification in the notification area, because these you can cancel. You decide how they show up and even group them. The cordova plugin to create local notifications is called 'cordova-plugin-local-notifications' [1]

So you will have to deal with the complexities of background notifications for this to work, but to determine if the app is in the foreground when the background notification arrives there is a boolean on the notification to help [2]

Although I must advise you sending large volumes of messages might not be a great way to use push notifications, it's meant to inform the user that something important has happened it should be personal and engage the users. Users could also opt to turn off the push notifications so you can't use it to transfer data.

Hope this helps

[1] https://github.com/katzer/cordova-plugin-local-notifications
[2] https://aerogear.org/docs/guides/aerogear-cordova/AerogearCordovaPush/#_ios_background_notification

On Wed, Nov 25, 2015 at 11:07 AM, Matthias Wessendorf <matzew@apache.org> wrote:


On Wed, Nov 25, 2015 at 10:14 AM, Rob Willett <rob.aerogear@robertwillett.com> wrote:
Hi,

We’ve got the Unified Push Server working on the OpenShift platform.
No real issues once we’d understood the point of aliases.

We can send notifications quite happily and see whats going on. We use
Perl for our backend servers and so we wrote a small Perl interface. If
anybody wants the code for the Perl interface let me know and we’ll
pass it on. We can’t claim a lot of credit for a simple piece of code
:)

sure, I think that would be awesome, if you could publish it on github.
We will promote if for other perl users! 
 

Anyway, one of edge use-cases would be to delete notification or set of
notifications when the app is running but in the background on iOS.

We want to do this as the user can receive a high number of
notifications (> 10) when the app is in the background. Notifications
come in groups and provide traffic updates, so a user may get a new
group of 3-4 traffic updates, this new group completely supersedes ANY
previous update. Our data is valuable when fresh and useless when over
10 minutes old.

Whilst we can simply ignore old notifications, UX testing has shown the
users don’t like having old notifications sitting round. We know that
the users can delete them individually or delete the lot from the
notification drawer OR can simply bring the app out of the background
BUT they don’t like doing that.

So what we want to do is delete old notifications, we were hoping for
the ability to call a JavaScript function with say a parameter to
identify notifications by a group or something, but we could accept
deleting the lot and inserting local notifications instead.

We know that we can send content-available and have stuff pulled from a
server in the background. This option is quite difficult for us and has
some complexity identifying when the app is not started up. The simplest
option is delete some or all of the notifications.

Does anybody know if this is possible or any other suggestions?

I think that's an interesting idea. Erik Jan recently did an update for message, on Cordova, to actually stack em:

Perhaps we could have a 'delete' feature too. Mind filing a JIRA against: https://issues.jboss.org/projects/AGCORDOVA
(you need to have an account in order create tickets)

Cheers!
Matthias
 

Thanks

Rob
_______________________________________________
Aerogear-users mailing list
Aerogear-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-users



--

_______________________________________________
Aerogear-users mailing list
Aerogear-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-users




--
Cheers,
       Erik Jan