我创建了一个 Twitter 应用程序,我需要我的 Android 应用程序的用户来授权它的使用。我可以在浏览器中调用 Twitter 应用程序页面并成功授权。但是,回调似乎不起作用,我最终在浏览器中收到确认消息和 PIN,但我的 Android 活动从未被调用(未触发 onResume)。这就是我所拥有的
- 推特网址: http: //twitter.com/oauth/authorize?oauth_token=actualtokenhere &oauth_callback=myapp:///
在我的活动定义中,我有这个意图过滤器
<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" /> </intent-filter>
正如我所说 - 我得到确认但没有重定向,因此 Android 应用程序永远不会被回调