uxcam / ios-sdk

This is the UXCam iOS SDK
9 stars 4 forks source link

App language changed #16

Closed hamedaakhlaghi closed 9 months ago

hamedaakhlaghi commented 1 year ago

One of our targets has the Arabic language as default we set it in main.swift


UIApplicationMain(
    CommandLine.argc,
    CommandLine.unsafeArgv,
    NSStringFromClass(MyApp.self),
    NSStringFromClass(AppDelegate.self)
)

class MyApp: UIApplication {
  override init() {
      UserDefaults.standard.set(["ar"], forKey: "AppleLanguages")
      super.init()
  }
}

Issue:

The problem occurs when users install the app for the first time, the app language changed to English. in the second run the app language backed to Arabic. I tested a lot of things, I discovered that the issue arises when we add the UXCAM module to the app(not using or importing, just adding). Curiously, removing the UXCAM module resolves the language problem, indicating that the integration with UXCAM is somehow affecting the language settings.

I reviewed the UXCAM code to identify any direct modifications or references to language settings, but nothing relevant was found. Do you have any idea?

UXCAM version: .package(name: "UXCam", url: "https://github.com/uxcam/ios-sdk.git", from: "3.6.4"), XCode version: 14.3.1

DFDIEGOH commented 11 months ago

Hi @hamedaakhlaghi - Diego here from UXCam.

First of all, wanted to apologize for the delay in this regard.

Good news! We have replicated this issue on our end and we have already implemented a fix that will be coming in our next release.

Will keep you posted, but you can also monitor the release on this page as well: https://developer.uxcam.com/docs/changelog

Don't hesitate reaching out in case you have questions.

hamedaakhlaghi commented 11 months ago

Hi Diego,

Thank you for reaching out and for the update regarding the issue we reported. I will certainly keep an eye on the release page you provided for any further updates.

On Wed, Nov 1, 2023 at 5:39 PM Diego Hernandez - UXCam < @.***> wrote:

Hi @hamedaakhlaghi https://github.com/hamedaakhlaghi - Diego here from UXCam.

First of all, wanted to apologize for the delay in this regard.

Good news! We have replicated this issue on our end and we have already implemented a fix that will be coming in our next release.

Will keep you posted, but you can also monitor the release on this page as well: https://developer.uxcam.com/docs/changelog

Don't hesitate reaching out in case you have questions.

— Reply to this email directly, view it on GitHub https://github.com/uxcam/ios-sdk/issues/16#issuecomment-1789022900, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD5S3QP4TT2ELOLTY5K4LQLYCJJZNAVCNFSM6AAAAAA2QH2KZ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBZGAZDEOJQGA . You are receiving this because you were mentioned.Message ID: @.***>

gabrieluxcam commented 11 months ago

Hello @hamedaakhlaghi Gabriel here, iOS SDK version 3.6.7 is out now with plenty of fixes including this one, would it be possible to test it and let us know if anything? Thanks!

DFDIEGOH commented 9 months ago

Closing due to inactivity - The fix for this issue has been released in version 3.6.7 of the iOS SDK.