Prompted to install Jetpack on private wpcom blog.
"My Private Blog" is a wpcom blog set to private. When I tap on the link button below the badge, I'm taken to the Stats / Install Jetpack screen.
Step one:

Step two:

I chased this rabbit a little ways into its hole.
NoteService blogForStatsEventNote: is calling BlogService blogByBlogId: passing in note.metaSiteID which has a value of 0 in this case. I'm probably getting the Jetpack login screen because I have an unconnected self-hosted blog also in the app.
Works correctly with just a wpcom in the app but as soon as I add a self-hosted blog I get the above behavior. Originally had this for 4.3 but changing to 4.2 as this should be a blocker.
:disappointed_relieved: I'll take a look
#1925 is just a workaround, the real problem is metaSiteID being 0. With this check it will load the blog on a web view (or a login page if it's private), which is not ideal, but at least it's relevant.
@jleandroperez do you know why it isn't syncing site IDs properly?
Closed #1923 as it was for develop, #1925 is for release/4.2
...as soon as I add a self-hosted blog I get the above behavior.
Actually, if there's a self-hosted with Jetpack configured, you'll get the stats screen for the Jetpack site instead of the one you clicked. I've fixed the stats REST API to include the site ID now, but I'm not sure if Simperium needs something to pick up the changes. @jleandroperez
@koke Simperium should automatically get those changes next time you connect
Closed in 61d2250c87bb4d252863d6fe31428c89c8934079