private void SubscribeTopics(string token)
 {
     foreach (string topic in Topics)
     {
         GcmPubSub pubSub = GcmPubSub.GetInstance(Android.App.Application.Context);
         pubSub.Subscribe(token, "/topics/" + topic, null);
     }
 }
예제 #2
0
        private void SubscribeTopics(string token)
        {
            GcmPubSub pubSub = GcmPubSub.GetInstance(this);

            foreach (string topic in Topics)
            {
                pubSub.Subscribe(token, "/topics/" + topic, null);
            }
        }