Exemplo n.º 1
0
 internal static void ReplayUnprocessedPushNotifications()
 {
     if (Push.IsAppCenterInitialize())
     {
         _unityListener.CallStatic("replayPushNotifications");
     }
 }
Exemplo n.º 2
0
        internal static void ReplayUnprocessedPushNotifications()
        {
            if (!Push.IsAppCenterInitialize())
            {
                return;
            }
            List <PushNotificationReceivedEventArgs> unprocessedPushNotificationsCopy = null;

            lock (_lockObject)
            {
                if (_unprocessedPushNotifications != null)
                {
                    // Don't want to invoke push callback inside lock, so make
                    // a copy.
                    unprocessedPushNotificationsCopy = new List <PushNotificationReceivedEventArgs>(_unprocessedPushNotifications);
                    _unprocessedPushNotifications    = null;
                }
            }
            if (unprocessedPushNotificationsCopy != null)
            {
                foreach (var notification in unprocessedPushNotificationsCopy)
                {
                    Push.NotifyPushNotificationReceived(notification);
                }
            }
        }
Exemplo n.º 3
0
 internal static void ReplayUnprocessedPushNotifications()
 {
     if (Push.IsAppCenterInitialize())
     {
         appcenter_unity_push_replay_unprocessed_notifications();
     }
 }