小编Den*_*ang的帖子

Firebase动态链接支持自定义参数?

我正在为开源会议撰写应用程序.

最初每位与会者将通过电子邮件或短信等方式收到不同的链接

https://example.com/?token=fccfc8bfa07643a1ca8015cbe74f5f17

然后使用此链接打开应用程序,我们可以通过令牌知道用户是哪个与会者.

Firebase在I/O 2016中发布了一项新功能动态链接,它为用户提供了更好的体验.

我试过了,但我找不到任何方法来传递动态链接中的自定义参数(令牌),如何使用不同参数的相同链接给我的用户?

谢谢.

firebase firebase-dynamic-links

21
推荐指数
6
解决办法
2万
查看次数

使用改造下载图像文件

我在我的Android项目上使用Retrofit 1.6.0,

请求网址:

https://example.com/image/thumbs/filename/sample.png

我的界面是这样的:

public interface ImageService {
    @GET("/image/thumbs/filename/{filename}")
    @Streaming
    void getThumbs(
        @Path("filename") String filename,
        Callback<Response> callback
    );
}
Run Code Online (Sandbox Code Playgroud)

HTTP请求成功,但发生了一些错误

D/Retrofit(27613): ---> HTTP GET https://example.com/image/thumbs/filename/sample.png
D/Retrofit(27613): ---> END HTTP (no body)
D/Retrofit(27613): <--- HTTP 200 https://example.com/image/thumbs/filename/sample.png (451ms)
D/Retrofit(27613): : HTTP/1.1 200 OK
D/Retrofit(27613): Connection: Keep-Alive
D/Retrofit(27613): Content-Disposition: inline; filename="sample.png"
D/Retrofit(27613): Content-Type: image/png; charset=binary
D/Retrofit(27613): Date: Wed, 11 Jun 2014 06:02:31 GMT
D/Retrofit(27613): Keep-Alive: timeout=5, max=100
D/Retrofit(27613): OkHttp-Received-Millis: 1402466577134
D/Retrofit(27613): OkHttp-Response-Source: NETWORK 200
D/Retrofit(27613): OkHttp-Sent-Millis: 1402466577027
D/Retrofit(27613): Server: Apache/2.2.22 (Ubuntu) …
Run Code Online (Sandbox Code Playgroud)

android retrofit

7
推荐指数
2
解决办法
2万
查看次数