Uploaded image for project: 'Realm .NET SDK'
  1. Realm .NET SDK
  2. RNET-1140

Encrypted Realm created on Android won't open on Windows

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None

      What happened?

      Hello!

      I was testing an on-device build of an app and encountered an issue that needed debugging in the development environment.

      So I copied the encrypted Realm file from the Android device to Windows and upon trying to open it (in code) it throws a "Realm file decryption failed" exception. So I tried opening it in Realm Studio and the same error is reported.

      To be 100% sure that the keys matched on the two devices (I can't see how they wouldn't) I copied it from the Android device to the Windows device and it's an exact match, byte for byte (the copied key was even used to open the Realm in Realm Studio)

      From my research, I thought that Realms were platform agnostic (even with encryption) but maybe that's not true? If they are, then this looks like it could be an issue.

      Repro steps

      See above.

      Version

      12.0.0

      What Atlas Services are you using?

      Local Database only

      What type of application is this?

      Unity

      Client OS and version

      Android 10, Windows 10

      Code snippets

      No response

      Stacktrace of the exception/crash you're getting

      No response

      Relevant log output

      No response

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: