Integrating AskSpot into your mobile iOS or Android app is a straightforward process. Here's how you can add your custom AskSpot chatbot to a mobile app.
In the AskSpot Dashboard
Select Your Chatbot: Go to your AskSpot dashboard and choose your chatbot from the dropdown menu.
Install Chatbot: Click on the CODE section in the top menu of your bot setup page
Copy Link: In the Link section, click on the Copy link button to copy your chatbot URL.
In Your Mobile App Code
The installation of the AskSpot chatbot in your mobile app will depend on the platform and framework you are using. Here are general instructions for the most popular solutions:
Android
Use the
WebViewwidget to embed a webpage within your Android app.Load the AskSpot URL into the
WebViewby calling theloadUrl()method on aWebViewinstance.Ensure you have the
INTERNETpermission in your Android Manifest.
iOS
Use the
WKWebViewclass from the WebKit framework to embed web content in your iOS application.Initialize a
WKWebViewobject, set its frame, and load aURLRequestwith the AskSpot URL.
React Native
Utilize the
react-native-webviewpackage to add web views in your React Native apps.Import the
WebViewcomponent from the package and load the AskSpot URL by setting thesourceprop.
Flutter
In Flutter, use the
webview_flutterpackage for embedding web content.Import the package and use the
WebViewwidget, setting theinitialUrlproperty to the AskSpot URL.
Ionic
For Ionic apps, use the Ionic Native
InAppBrowserplugin or theiframeHTML element for simple cases.Import the plugin and call the
create()method to launch the AskSpot URL in an in-app browser window.