{code:java} private void sendMetrics(Bundle bundle) { String pushMessageId = bundle.getString(UnifiedPushMessage.PUSH_MESSAGE_ID); UnifiedPushMetricsMessage metricsMessage = new UnifiedPushMetricsMessage(pushMessageId); AeroGearGCMPushRegistrar registrar = (AeroGearGCMPushRegistrar) RegistrarManager.getRegistrar(Const.PUSH_REGISTER_NAME); if (registrar != null) registrar.sendMetrics(metricsMessage, new MetricsCallback()); } {code}
|