DisplayDevs

Results 18 comments of DisplayDevs

Hey @rizafran, did you manage to replicate it? it should be quite straight forward

@argzdev I can replicate the issue on multiple devices using custom provider, the issue is coming from using `System.currentTimeInMills()` in the expire check, when you change the device time to...

Below is the `getToken()` code that I use to retrieve the token from the Firebase Function: ``` @Override public Task getToken() { Retrofit retrofit = new Retrofit.Builder() .baseUrl("https://{project-id}.cloudfunctions.net") .addConverterFactory(GsonConverterFactory.create()) .build();...

@argzdev Using the exact same code you posted I was able to replicate it, it goes into infinite loop of renewing the token. Can you post the Firebase Function you...

I just noticed that the App Check Provider is checking if the token is expired by the expiration time in mills inside the token itself, so what is the purpose...

Sorry for the late response @argzdev , here is a minimal reproducible example: MainActivity onCreate where `fab2` is the button that retrieve the token ``` @Override protected void onCreate(Bundle savedInstanceState)...

Returning `MyAppCheckProvider` instead of `YourCustomAppCheckProvider` was indeed an overlook by my part, unfortunately changing it didn't solve the issue. As for your questions, yes the Cloud function spam the logs...

Unfortunately using ExoPlayer download/cache functionality is not an option as some of the streams are live streams (and some are not), so I need a solution that would work for...