phrase / ios-demo-app

iOS demo app for over-the-air
https://phrase.com
MIT License
0 stars 0 forks source link

Phrase OTA no working on First Relaunch #3

Open DineshThakur opened 5 months ago

DineshThakur commented 5 months ago

Hi Team,

Phrase OTA is not working on first time kill and relaunch the app. We need to kill and relaunch the app two time, then only phrase update is reflecting in the app.

Step to reproduce:- • Update string on phrase portal. • Release new version via OTA. • Kill and Relaunch the app. • Kill and relaunch the app 2nd time.

I have tried Phrase OTA with Phrase Demo app: - https://github.com/phrase/ios-demo-app

Same issue is there demo app as well. You have to kill and relaunch app two time then only updates are reflecting in app.

Pls let me know if you need any other details.

theSoenke commented 5 months ago

Hi @DineshThakur, that is currently the expected behaviour of the SDK. On the first launch the translations are fetched if a release is available and cached. On the second launch the cached translations are then used and displayed. But we're currently looking into some solutions to refresh the translations while the app is running. Once there's an update regarding this feature I'll post the details on this issue

guicamacho commented 2 months ago

Hey @theSoenke . Any updates on this?

DineshThakur commented 2 months ago

@theSoenke

Even we have same issue when we switch from one language to another.

Suppose we are using our app in English. Go to Setting app and change the language from English to German. After changing the language, first you wont’ see text in German, if you kill and relaunch the app then text will appear in German Language, some how this is not good user experience.

Anytime line to fix this issue?