-
-
Notifications
You must be signed in to change notification settings - Fork 56
Blank screen showing for too long before going to desired screen after exit #12
Comments
@muresanandrei could you please add more details?
|
@catalinmiron Yes. On simulator there is no problem when I exit the webview it exits instantly. But on phone it takes like 15 seconds even more. During that it just shows a blank screen. |
I'm not sure if is related to this library. Is there any repo that I can test? Thanks! |
I can share you my plaid code.
|
When state status is EXIT this is called this.bankLinked() and it returns a view. But this delay is only on phone not simulator. |
Is there maybe some prop I could use in webview to fix the delay ? |
@muresanandrei a simple component as is I could also do a code review but it might be out of scope.
const getJWT = async () => {
try {
const token = await AsyncStorage.getItem('jwt');
return token
}
} catch (error) {
// Error retrieving data
}
}
const constructFormData = () => {
const {public_token, institution} = this.state.data.metadata;
const {institution_id, name } = institution;
const formData = new FormData();
const obj = JSON.stringify({public_token, institution_id, name});
formData.set(obj);
return formData;
}
const addInstitution = async () => {
const jwt = await this.getJWT();
const body = this.constructorFormData();
try {
const response = await fetch(`${api_url}?token=${jwt}`);
const data = await response.json();
// do whatever!
} catch (err) {}
}
Thanks! |
@catalinmiron Thanks for this but the problem is even when I just press x button and takes like a minute to render a simple view. During that I have a blank screen again this is only on phone. This is a problem with the PlaidAuthenticator even using your example same result I get. The injecting javascript is for not getting errors because of plaid captcha. |
@catalinmiron This is not fixed I took the example and run it and it has the same problem. When you close it just shows a blank screen. |
I’m running into a very similar problem. When I try to exit or have finished connecting through the Plaid link, when my app changes state back to my React-Native component, I get a blank screen for a long time before the WebView transitions Back to my app again. And similarly, this only seems to happen on my iPhone and not on the simulator. But it happens on my TestFlight app. |
Is this issue solved? if yes please share the solution with me as i am also facing the same issue on phone as well as simulator. |
After linking a bank or closing the webview it takes a lot of time to return to the view from status state EXIT. What may be the issue ? Also there is a difference on simulator and real phone when testing this.
The text was updated successfully, but these errors were encountered: