private void SetupPushLink()
        {
            var deviceId = Android.Provider.Settings.Secure.GetString(ContentResolver,
                                                                      Android.Provider.Settings.Secure.AndroidId);

            PushLink.SetCurrentStrategy(StrategyEnum.Custom);
            PushLink.Start(this, Resource.Drawable.icon, "PUSH_LINK_API_KEY_GOES_HERE", deviceId);

            RegisterReceiver(new PushLinkUpdateReceiver(), new IntentFilter(Context.PackageName + ".pushlink.APPLY"));
        }
Ejemplo n.º 2
0
        public override void OnCreate()
        {
            base.OnCreate();
            PushLink.Start(this, 2130837504, "9lrbrs8aktvp528o", "unique_dev0");

            StatusBarStrategy sbs = (StatusBarStrategy)PushLink.CurrentStrategy;

            sbs.StatusBarTitle       = ("Hello, there is a new version");
            sbs.StatusBarDescription = ("Click to be happy");

            //Changing strategy
            PushLink.SetCurrentStrategy(StrategyEnum.FriendlyPopup);

            //Modifying new strategy
            FriendlyPopUpStrategy fps = (FriendlyPopUpStrategy)PushLink.CurrentStrategy;

            fps.PopUpMessage          = ("New version available");
            fps.NotNowButton          = ("No, thanks!");
            fps.UpdateButton          = ("Ok, lets go");
            fps.ReminderTimeInSeconds = (Java.Lang.Integer) 3600; //one hour
        }