I am using the free edition of jetpack. How can I get rid

I am using the free edition of jetpack.
How can I get rid of the jetpack nag that asks me to connect to wordpress.com at the start of the app?

Thanks A.

  • Quang

    Hi @taropaa,

    thank you for great question.

    To remove the Jetpack login screen, you will need to modify the Obj-C code in the project:
    - Modifying method 'synchronizeNewlyAddedBlog' (lines 1344 - 1360) of 'WordPress/Classes/GeneralWalkthroughViewController.m' as following:

    - (void)synchronizeNewlyAddedBlog
    {
        [SVProgressHUD setStatus:NSLocalizedString(@"Synchronizing Blog", nil)];
        void (^successBlock)() = ^{
            [[WordPressComApi sharedApi] syncPushNotificationInfo];
            [SVProgressHUD dismiss];
            [WPMobileStats trackEventForSelfHostedAndWPCom:StatsEventNUXFirstWalkthroughUserSignedInToBlogWithJetpack];
    //        if ([_blog hasJetpack]) {
    //            [self showJetpackAuthentication];
    //        } else {
    //        }
            [self showCompletionWalkthrough];
        };
        void (^failureBlock)(NSError*) = ^(NSError * error) {
            [SVProgressHUD dismiss];
        };
        [_blog syncBlogWithSuccess:successBlock failure:failureBlock];
    }

    - Modifying method 'synchronizeNewlyAddedBlog' of 'WordPress/Classes/AddSiteViewController.m' as following:

    - (void)synchronizeNewlyAddedBlog
    {
        void (^successBlock)() = ^{
            [[WordPressComApi sharedApi] syncPushNotificationInfo];
    //        if (![self.blog isWPcom] && [self.blog hasJetpack]) {
    //            [self connectToJetpack];
    //        } else {
    //            [self dismiss];
    //        }
            [self dismiss];
        };
        void (^failureBlock)(NSError*) = ^(NSError * error) {
            [SVProgressHUD dismiss];
        };
        [SVProgressHUD showWithStatus:NSLocalizedString(@"Reading blog options", @"") maskType:SVProgressHUDMaskTypeBlack];
        [self.blog syncBlogWithSuccess:successBlock failure:failureBlock];
    }

    Cheers

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.