gcappon / fitbitter

A Flutter package to make your life easier when dealing with Fitbit APIs.
https://gcappon.github.io/fitbitter/
BSD 3-Clause "New" or "Revised" License
19 stars 21 forks source link

README update for android developers. #2

Closed TessaGush closed 3 years ago

TessaGush commented 3 years ago

Hi, hope im not intruding, but I have been trying to use your software for a few days, and have been struggling. I realised that this issue is just for when running on android.

If you want to run this code on android you need to update your manifest with another activity.

so in example/android/app/src/main/AndroidManifest.xml

you add this activity

<activity android:name="com.linusu.flutter_web_auth.CallbackActivity" >
      <intent-filter android:label="flutter_web_auth">
        <action android:name="android.intent.action.VIEW" />
        <category android:name="android.intent.category.DEFAULT" />
        <category android:name="android.intent.category.BROWSABLE" />
        <data android:scheme="YOUR_CALLBACK_URL_SCHEME_HERE" />
      </intent-filter>
    </activity>

in this example you would replace YOUR_CALLBACK_URL_SCHEME_HERE with example

gcappon commented 3 years ago

Thank you very much. I will include that instruction In the example README ASAP!

gcappon commented 3 years ago

I updated the example and the README as suggested. Thank you very much!