{"id":5782,"date":"2022-02-04T21:56:02","date_gmt":"2022-02-04T13:56:02","guid":{"rendered":"https:\/\/www.enablex.io\/developer\/?page_id=5782"},"modified":"2025-02-21T20:22:46","modified_gmt":"2025-02-21T12:22:46","slug":"how-to-use","status":"publish","type":"page","link":"https:\/\/doc.smartflomeet.ttns.in\/developer\/video-api\/client-api\/flutter-toolkit\/how-to-use\/","title":{"rendered":"How to use Flutter SDK?"},"content":{"rendered":"<div class=\"ub-buttons align-button-center\"  id=\"ub-button-d5e9763b-a631-48c2-9719-4f37b5a94a83\"><div class=\"ub-button-container\">\n    <a href=\"https:\/\/pub.dev\/packages\/enx_flutter_plugin\" target=\"_blank\"\n    rel=\"noopener noreferrer nofollow\"\n    class=\"ub-button-block-main ub-button-medium\" role=\"button\">\n    <div class=\"ub-button-content-holder\"><span class=\"ub-button-block-btn\">Install through PUB<\/span>\n    <\/div><\/a><\/div><\/div>\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>Steps to follow<\/strong>:<\/p>\n\n\n\n<ul><li>Create Flutter sample project<\/li><li>Add <code>Enx flutter SDK<\/code> as a dependency in <code>pubspec.yaml<\/code> file<\/li><li>For iOS run command <code>flutter build ios --no-codesign<\/code><\/li><\/ul>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3>Device Permission<\/h3>\n\n\n\n<p>SDK requires camera and microphone permission to start video call.<\/p>\n\n\n\n<p><strong>Setup for iOS<\/strong><\/p>\n\n\n\n<p>Open the <em><code>info.plist<\/code><\/em> and add:<\/p>\n\n\n\n<ul><li><strong>Privacy <\/strong>&#8211; Microphone Usage description and add a note in the Value column.<\/li><li><strong>Privacy <\/strong>&#8211; Camera Usage description and add a note in the Value column.<\/li><\/ul>\n\n\n\n<p>Your application can still run the voice call when it is switched to the background if the background mode is enabled. Select the app target in Xcode,  Click the <strong>Capabilities<\/strong> tab, enable <strong>Background Modes<\/strong>, and check <strong>Audio<\/strong>.<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3>iOS Black Screen<\/h3>\n\n\n\n<p>Our SDK use <code>PlatformView<\/code>, you should set io.flutter.embedded_views_preview to YES in your <em><code>info.plist<\/code><\/em> <a href=\"https:\/\/github.com\/EnableX\/One-to-One-Video-Calling-Open-Source-flutter-Application\" target=\"_blank\" aria-label=\"undefined (opens in a new tab)\" rel=\"noreferrer noopener\">See Sample App<\/a> <\/p>\n\n\n\n<a name=\"error-exceptions\"><\/a>\n\n\n\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2>Error &amp; Exceptions<\/h2>\n\n\n\n<p>iOS SDK method call might face exception cases and fail. In such cases a JSON is returned through Callback. Example of JSON Object given below:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">{\n\t\"errorCode\": Number,\n\t\"msg\": \"String\",\n\t\"desc\": \"String\"\n}<\/pre>\n\n\n\n<ul><li><code>errorCode<\/code>\u2013 Number. Error Code.<\/li><li><code>msg<\/code>&nbsp;\u2013 String. Error Message.<\/li><li><code>desc<\/code>&nbsp;\u2013 String. Optional. Descriptive explanation of the error.<\/li><\/ul>\n\n\n\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<div class=\"wp-block-columns\">\n<div class=\"wp-block-column\"><\/div>\n\n\n\n<div class=\"wp-block-column\">\n<p class=\"has-text-align-center\"><a href=\"..\/\">Index<\/a><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column\">\n<p class=\"has-text-align-right\"><a href=\"..\/get-devices\/\">Get Media Device Access<\/a> \u2192<a href=\"\/developer\/how-to-use\/\"><\/a><\/p>\n<\/div>\n<\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Steps to follow: Create Flutter sample project Add Enx flutter SDK as a dependency in pubspec.yaml file For iOS run command flutter build ios &#8211;no-codesign Device Permission SDK requires camera and microphone permission to start video call. Setup for iOS Open the info.plist and add: Privacy &#8211; Microphone Usage description and add a note in the Value column. Privacy &#8211; Camera Usage description and add a note in the Value&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3755,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"ub_ctt_via":""},"featured_image_src":null,"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"featured":false,"featured-large":false},"uagb_author_info":{"display_name":"vcxdevwpadmin","author_link":"https:\/\/doc.smartflomeet.ttns.in\/developer\/author\/vcxdevwpadmin\/"},"uagb_comment_info":0,"uagb_excerpt":"Steps to follow: Create Flutter sample project Add Enx flutter SDK as a dependency in pubspec.yaml file For iOS run command flutter build ios --no-codesign Device Permission SDK requires camera and microphone permission to start video call. Setup for iOS Open the info.plist and add: Privacy &#8211; Microphone Usage description and add a note in&hellip;","_links":{"self":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/5782"}],"collection":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/comments?post=5782"}],"version-history":[{"count":0,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/5782\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/3755"}],"wp:attachment":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/media?parent=5782"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}