I want to include the ability to create a ticket and browse the solutions in my Android app. I could do this via the API but since I don't make money with my app yet, I don't want to pay for 2 agents to secure the access to Freshdesk. But if I use my API key, and people get it via decompiling the app they could access all the customer information(I know I can secure it a bit with ProGuard and in a C++ file, but that's not fool proof).
So I included the Help Widget via a Webview in Android per the instructions, but when you press the close 'X' or close the widget after creating a ticket, the widget will close but that will leave an empty WebView. How can I detect that the widget is closes and close the WebView as well?

