protected override void Initialise (NotificationServiceSettings _settings)
		{
			string _keyForUserInfo	= _settings.iOS.UserInfoKey;

			// Initialise native component
			initNotificationService(_keyForUserInfo);
		}
Beispiel #2
0
        protected override void Initialise(NotificationServiceSettings _settings)
        {
            string _keyForUserInfo = _settings.iOS.UserInfoKey;

            // Initialise native component
            initNotificationService(_keyForUserInfo);
        }
		protected override void Initialise (NotificationServiceSettings _settings)
		{
			Dictionary<string, string> customKeys = GetCustomKeysForNotfication(_settings);
			
			//Pass sender id list and customkeys to Native platform
			SendConfigInfoToNative(_settings.Android.SenderIDList, customKeys, _settings.Android.NeedsBigStyle, _settings.Android.WhiteSmallIcon, _settings.Android.AllowVibration);
		}
        protected override void Initialise(NotificationServiceSettings _settings)
        {
            // Cache reference
            m_notificationCenter = EditorNotificationCenter.Instance;

            // Initialise notificaton center
            m_notificationCenter.Initialise();
        }
		protected override void Initialise (NotificationServiceSettings _settings)
		{		
			// Cache reference
			m_notificationCenter	= EditorNotificationCenter.Instance;

			// Initialise notificaton center
			m_notificationCenter.Initialise();
		}
        private Dictionary <string, string> GetCustomKeysForNotfication(NotificationServiceSettings _settings)
        {
            Dictionary <string, string> _data = new Dictionary <string, string>();

            _data = AndroidNotificationPayload.GetNotificationKeyMap();

            return(_data);
        }
        protected override void Initialise(NotificationServiceSettings _settings)
        {
            base.Initialise(_settings);

            // Pass sender id list and customkeys to Native platform
            Dictionary <string, string> customKeys = GetCustomKeysForNotfication(_settings);

            SendConfigInfoToNative(_settings.Android.SenderIDList, customKeys, _settings.Android.NeedsBigStyle, _settings.Android.WhiteSmallIcon, _settings.Android.AllowVibration);
        }
        protected override void Initialise(NotificationServiceSettings _settings)
        {
            Dictionary <string, string> customKeys = getCustomKeysForNotfication(_settings);

            //Pass sender id list and customkeys to Native platform
            SendConfigInfoToNative(_settings.Android.SenderIDList, customKeys, _settings.Android.NeedsBigStyle, _settings.Android.AllowCustomIcon);

            // Get notifications received at launch
            getLaunchNotifications();
        }
        Dictionary <string, string> getCustomKeysForNotfication(NotificationServiceSettings _settings)
        {
            Dictionary <string, string> _data = new Dictionary <string, string>();

            _data.Add(kUserInfo, AndroidNotificationPayload.UserInfoKey);
            _data.Add(kTickerText, AndroidNotificationPayload.TickerTextKey);
            _data.Add(kContentTitle, AndroidNotificationPayload.ContentTitleKey);
            _data.Add(kContentText, AndroidNotificationPayload.ContentTextKey);
            _data.Add(kTag, AndroidNotificationPayload.TagKey);

            //Add collapse key and extra stuff as needed //TODO

            return(_data);
        }
        protected override void Initialise(NotificationServiceSettings _settings)
        {
            base.Initialise(_settings);

            // Initialise native component
            string _keyForUserInfo             = _settings.iOS.UserInfoKey;
            bool   _captureLocalNotifications  = true;
            bool   _captureRemoteNotifications = true;

            if (NPSettings.Application.SupportedAddonServices.UsesOneSignal)
            {
                _captureRemoteNotifications = false;
            }

            initNotificationService(_captureLocalNotifications, _captureRemoteNotifications, _keyForUserInfo);
        }
 protected virtual void Initialise(NotificationServiceSettings _settings)
 {
 }
 protected virtual void Initialise(NotificationServiceSettings _settings)
 {
 }
		Dictionary<string, string> getCustomKeysForNotfication(NotificationServiceSettings _settings)
		{
			Dictionary<string, string> _data =  new Dictionary<string, string>();
			
			_data.Add(kUserInfo, AndroidNotificationPayload.UserInfoKey);
			_data.Add(kTickerText, AndroidNotificationPayload.TickerTextKey);
			_data.Add(kContentTitle, AndroidNotificationPayload.ContentTitleKey);
			_data.Add(kContentText, AndroidNotificationPayload.ContentTextKey);
			_data.Add(kTag, AndroidNotificationPayload.TagKey);
			
			//Add collapse key and extra stuff as needed //TODO
			
			return _data;
			
		}
        protected override void Initialise(NotificationServiceSettings _settings)
        {
            Dictionary<string, string> customKeys = getCustomKeysForNotfication(_settings);

            //Pass sender id list and customkeys to Native platform
            SendConfigInfoToNative(_settings.Android.SenderIDList, customKeys, _settings.Android.NeedsBigStyle, _settings.Android.AllowCustomIcon);

            // Get notifications received at launch
            getLaunchNotifications();
        }