深度链接 Android 与“&”字符

Deep Linking Android with "&" character

我希望用户能够使用 magic a link 登录,如下所示:

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

出于某种原因,应用程序仅接收 & 字符之前的部分:

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

有人知道如何解决这个问题吗?

编辑:这是我在 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>

原来问题已经回答了

解决方案:

使用 adb/Android Studio 进行测试时,必须在 & 之前添加

\