3

I want a user to be able to login using magic a link as below:

myapp://app.com/login-with-token?email=someEmail&token=sometoken

For some reason the app only receives the part before & character as:

myapp://app.com/login-with-token?email=someEmail

Does anybody have an idea how to work around this problem?

EDIT: Here's what I've added in AndroidManifest.xml

<intent-filter>
          <action android:name="android.intent.action.VIEW"/>
          <category android:name="android.intent.category.DEFAULT"/>
          <category android:name="android.intent.category.BROWSABLE" />
          <data android:scheme="myapp"
              android:host="app.com"
              android:pathPrefix="/"/>
</intent-filter>
Arkalyk Akash
  • 211
  • 2
  • 11

1 Answers1

3

Turns out the question has already been answered here.

SOLUTION:

\ has to be added before & when testing with adb/Android Studio.

Arkalyk Akash
  • 211
  • 2
  • 11