helpshift / CocoaPods

CocoaPods specs for Helpshift SDK
1 stars 0 forks source link

closeHelpshiftSupportSession not working? #6

Open jyounus opened 8 years ago

jyounus commented 8 years ago

Hey there,

Either I'm not understanding what a "Helpshift session" is, or HelpshiftSupport.closeHelpshiftSupportSession() doesn't work.

Am I correct that this line of code should basically "cancel" any outstanding conversations? In other words, it should have similar behaviour as if I was to press the "Reject" or "Resolve" button on my Helpshift Issues Dashboard, right? Close the existing conversations (if any), so the user can start a new one.

That doesn't seem to work for me. I'm doing the following:

HelpshiftSupport.closeHelpshiftSupportSession() // close any existing conversations TODO: doesn't seem to do what you think it does?
HelpshiftSupport.showConversation(vc, withOptions: getOptionsForDeletingAccount(providedFeedback)) // create the final conversation/feedback screen with prefilled text

I'm trying to open a new conversation screen with pre-filled text that the user entered in the previous screen. I want to collect any feedback on how I can improve my app, before they delete their user account for whatever reason. I want to know that reason.

However if a user already has an open conversation, it just opens the messages screen. It doesn't cancel anything and neither does it pre-populate the textfield.

It only works if I reject/resolve any existing issues from the dashboard and then try to call the above two lines of code. Only then I see a brand new conversation screen with my text pre-filled.

Any ideas what I'm doing wrong? How is HelpshiftSupport.closeHelpshiftSupportSession() supposed to work?

NSRover commented 8 years ago

@jyounus The closeHelpshiftSupportSession API will close any helpshift screen that is open at the time. The term session here refers to Helpshift's UI Navigation stack.

Its seems the documentation does not make this clear enough. Thanks for pointing this out, we will update this soon.