private void DidReceiveOneSignalNotification(OSNotification _notification)
        {
            CrossPlatformNotification _receivedNotification = new OneSignalNotificationPayload(_payload: _notification.payload);

            StartCoroutine(DidReceiveRemoteNotification(_receivedNotification, !_notification.isAppInFocus));
        }
예제 #2
0
        private void DidReceiveOneSignalNotification(string _message, Dictionary <string, object> _additionalData, bool _isActive)
        {
            CrossPlatformNotification _receivedNotification = new OneSignalNotificationPayload(_message, _additionalData);

            StartCoroutine(DidReceiveRemoteNotification(_receivedNotification, !_isActive));
        }
        private void DidReceiveOneSignalLaunchNotification(OSNotificationOpenedResult _notificationOpened)
        {
            CrossPlatformNotification _receivedNotification = new OneSignalNotificationPayload(_payload: _notificationOpened.notification.payload);

            StartCoroutine(DidReceiveRemoteNotification(_receivedNotification, true));
        }