3

I recently upgraded one of my iOS apps to Mobile SDK 3.2.

Everything generally works okay but I'm seeing this weird error message when user logs out -

Network action must have an instance hosts

Has anyone else seen this? How do you work around it?

5

This one is actually a known issue and has subsequently been fixed. You can also view the code changes for this fixed ticket here.

This was occuring earlier because the flow was missing handling for unique subscribers as a key - kSFUserAccountKey

This is the crucial block

(void)userWillLogOutNotification:(NSNotification *)notification {
  SFUserAccount *userAccount = notification.userInfo[kSFUserAccountKey];
    [[self class] cleanupNetworkForUserAccount:userAccount];
  • Thanks Gaurav !!! +1 from me .Thank you for amazing contribution to the community – Mohith Shrivastava Jun 12 '15 at 19:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.