<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Edafe</title>
    <description>The latest articles on Forem by Edafe (@edafe).</description>
    <link>https://forem.com/edafe</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F76095%2Fe6373e24-00bf-450b-a69e-0d98fec59920.png</url>
      <title>Forem: Edafe</title>
      <link>https://forem.com/edafe</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/edafe"/>
    <language>en</language>
    <item>
      <title>Unable to read Dashboard config. Please confirm that your Branch key is properly added to the manifest. ( Flutter )</title>
      <dc:creator>Edafe</dc:creator>
      <pubDate>Mon, 14 Apr 2025 07:48:40 +0000</pubDate>
      <link>https://forem.com/edafe/unable-to-read-dashboard-config-please-confirm-that-your-branch-key-is-properly-added-to-the-l8a</link>
      <guid>https://forem.com/edafe/unable-to-read-dashboard-config-please-confirm-that-your-branch-key-is-properly-added-to-the-l8a</guid>
      <description>&lt;p&gt;I was integrating deeplinking using &lt;a href="https://branch.io/" rel="noopener noreferrer"&gt;branch.io&lt;/a&gt; when i encountered the above error on android ( flutter )&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;** ERROR ** : Unable to read Dashboard config. Please confirm that your Branch key is properly added to the manifest. Please fix your Dashboard settings.

Please follow the link for more info https://branch.app.link/link-settings-page
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It said my dashboard was not configured even though i have correctly added the necessary files in my AndroidManifest&lt;/p&gt;

&lt;p&gt;After hours searching and debugging every line, i found the root cause ( in my case of course )&lt;/p&gt;

&lt;h3&gt;
  
  
  The Main Cause
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;AppTrackingStatus status = await FlutterBranchSdk.requestTrackingAuthorization();
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I was calling the above method to request app tracking, the mistake was that i wasn't checking if the platform was iOS. &lt;/p&gt;

&lt;p&gt;The above method was only supposed to be called on iOS and not Android. But in my section of the code i forgot to add to check for platform &lt;/p&gt;

&lt;h6&gt;
  
  
  Don't call the above method on android, do a platform check first
&lt;/h6&gt;

&lt;h6&gt;
  
  
  NOTE : This is only a short note on the above error and you might need to do further research is your use case is different
&lt;/h6&gt;

&lt;h6&gt;
  
  
  ## Please leave a reaction/comment if you found this helpful
&lt;/h6&gt;

</description>
    </item>
    <item>
      <title>Flutter : Your scoped storage permission declaration needs to be updated.</title>
      <dc:creator>Edafe</dc:creator>
      <pubDate>Mon, 02 Sep 2024 07:19:17 +0000</pubDate>
      <link>https://forem.com/edafe/your-scoped-storage-permission-declaration-needs-to-be-updated-1e1o</link>
      <guid>https://forem.com/edafe/your-scoped-storage-permission-declaration-needs-to-be-updated-1e1o</guid>
      <description>&lt;p&gt;I was publishing an android build using &lt;a href="https://codemagic.io/" rel="noopener noreferrer"&gt;codemagic.io&lt;/a&gt; when the process failed with this error.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftax0qmb26ry4ozyb8945.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftax0qmb26ry4ozyb8945.png" alt="Scoped storage error" width="800" height="185"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Short Summary on Scoped storage
&lt;/h3&gt;

&lt;p&gt;Of course the first thing i had to do was to research &lt;a href="https://developer.android.com/training/data-storage#scoped-storage" rel="noopener noreferrer"&gt;scope storage&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Scope storage is all about the android OS restricting the storage access your app has on the device. In earlier versions of the Android  OS, your app has storage access to wide number of locations/folder within the device. This unlimited storage access poses a threat as bad actors can take advantage of it hence the need to restrict it.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Main Cause
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In my case, having the above permission in my &lt;code&gt;AndroidManifest.xml&lt;/code&gt; triggered the error&lt;/p&gt;

&lt;p&gt;This permission is mostly provided to app such as file explorer. &lt;/p&gt;

&lt;p&gt;That does not mean it's a dead end if your app requires this permission. You would just have to update your permission ( Maybe by writing to the playstore review/policy team -  ). &lt;/p&gt;

&lt;p&gt;But for a lot of app use cases, you wouldn't need this permission.&lt;/p&gt;

&lt;p&gt;The above permission is different from these two permission below and they don't trigger the error,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /&amp;gt;

&amp;lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&amp;gt; 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;NOTE : This is only a short note on the above error and you might need to do further research is your use case is different&lt;/p&gt;

</description>
      <category>flutter</category>
      <category>scope</category>
      <category>storage</category>
      <category>android</category>
    </item>
  </channel>
</rss>
