コード例 #1
0
 public void gettags()
 {
     OneSignal.GetTags((tags) => {
         CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () => {
             gettagsevent(this, new GetTagsEventArgs()
             {
                 tags = JsonConvert.SerializeObject(tags)
             });
         });
     });
 }
コード例 #2
0
            public void IdsAvailable(string oneSignalUserId, string registrationId)
            {
                var user        = App.CurrentUserEnvironment.User;
                var idUser      = user.IdUser.ToString();
                var credentials = string.Format("{0}/{1}/{2}", user.LastName, user.FirstName, user.Email);

                //Sync email
                OneSignal.SyncHashedEmail(user.Email);
                //Create user tags
                OneSignal.GetTags(new GetTagsHandler(idUser, credentials));
                //Silent notification
                OneSignal.SetInFocusDisplaying(OneSignal.OSInFocusDisplayOption.None);
            }
コード例 #3
0
 public void OneSignalGetTags_managed()
 {
     OneSignal.GetTags((tags) => {
         m_Native.CLR_TO_MARM_TagsReceivedCallback((tags == null) ? "" : JObject.FromObject(tags).ToString());
     });
 }
コード例 #4
0
 public void GetTags()
 {
     OneSignal.GetTags(GetTagsHandler);
 }