AGPUSH-1103 : Fix stats number for iOS and SPS

This fixes the bug of showing wrong numbers in the dashboard (on application level) for iOS and SPS variants. 
The fix works for SPS but I do not have access today to a mac. @cvasilak @edewit @matzew Could you give it a try ?
To reproduce it, you need to register at least 2 iOS devices to the same variant and then send some message.

This should go in master and 1.0.x branch
debug level of loggin?

On Thu, Nov 13, 2014 at 2:04 PM, Sebastien Blanc <notifications@github.com>
wrote:

> In
> push/src/main/java/org/jboss/aerogear/unifiedpush/message/sender/APNsPushNotificationSender.java:
>
> > @@ -107,6 +107,7 @@ public void sendPushMessage(final Variant variant, final Collection<String> toke
> >                      logger.info("Deleting '" + inactiveTokens.size() + "' invalid iOS installations");
> >                      clientInstallationService.removeInstallationsForVariantByDeviceTokens(iOSVariant.getVariantID(), transformedTokens);
> >                  }
> > +                callback.onSuccess();
> >              } catch (Exception e) {
> >                  callback.onError("Error sending payload to APNs server: " + e.getMessage());
>
> I can update AGLogger but not sure what should logger.fine(message, e);
> do :) ?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/aerogear/aerogear-unifiedpush-server/pull/430/files#r20288979>
> .
>



-- 
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf