Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS Issues depending on config #126

Open
nhannah opened this issue Jan 11, 2022 · 1 comment
Open

iOS Issues depending on config #126

nhannah opened this issue Jan 11, 2022 · 1 comment

Comments

@nhannah
Copy link

nhannah commented Jan 11, 2022

Hi @fbartho; contacting you in a different capacity from when we last spoke. I am actually using your ZenDesk library and have run into some funny business I wanted to ask if you had seen before. Everything was working fine until maybe 2 months ago, then iOS just stopped working. I tracked it down to the fact that I could no longer start a chat with a name provided on iOS, nor could I set the preChatFormOptions to have name as hidden any longer. My only option on iOS was something like this:

 name: (Platform.OS === 'android' && preferredName) || undefined,
 preChatFormOptions: {
        name: Platform.OS === 'android' && preferredName ? 'hidden' : 'required',

Doing the more logical platform free check would result in the chat never starting on iOS, the bot would not pop up, none of that, just stuck on a blank chat screen and messages would never be marked as sent. So I added this code in and started asking for names on iOS despite not needing them. Then this week it seemed I hit another bug, again no changes. I found, as I saw elsewhere in another issue, if department was set on iOS I would get the bot responses, then a dead end, "thanks for issue", "thanks for name", no connection to a person after the bot was done. Removing department led to another new state, I would get the bot, the name would be asked for, it was say "thanks" then nothing, but if I again typed a message I would get connected as expected. My final solution just involved dropping department and setting showPreChatForm false on iOS. This loses the bot and starts people on an empty screen, but at least they connect and know someone is coming after their first message.

The initial name issue I hardcoded in objC the same values and experienced the same issues, I contact ZD and they asked me to test out their test project, but I have not had time yet. I was curious if you have seen any of these issues yourself? It seems so strange they occur without code changes or library updates, yet ZD had said it must be my side as they don't see an issue.

@nhannah
Copy link
Author

nhannah commented Jan 11, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant