<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - iOS: Wrong File when Opening from Nextcloud-App"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=124970#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - iOS: Wrong File when Opening from Nextcloud-App"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=124970">bug 124970</a>
              from <span class="vcard"><a class="email" href="mailto:tml@iki.fi" title="Tor Lillqvist <tml@iki.fi>"> <span class="fn">Tor Lillqvist</span></a>
</span></b>
        <pre>when opening a doc from Nextcloud app for the first time. the following happens
in the Collabora Office app: 

#0      0x0000000100ee04a0 in ::-[AppDelegate
applicationWillEnterForeground:](UIApplication *) at
/Volumes/TML13/lo/online-ios-co-4/ios/Mobile/AppDelegate.mm:252

#0      0x0000000100ee0598 in ::-[AppDelegate
application:openURL:options:](UIApplication *, NSURL *, NSDictionary *) at
/Volumes/TML13/lo/online-ios-co-4/ios/Mobile/AppDelegate.mm:262

#0      0x0000000100ee04e0 in ::-[AppDelegate
applicationDidBecomeActive:](UIApplication *) at
/Volumes/TML13/lo/online-ios-co-4/ios/Mobile/AppDelegate.mm:255

#0      0x0000000100ed3b0c in ::-[DocumentViewController viewDidLoad]() at
/Volumes/TML13/lo/online-ios-co-4/ios/Mobile/DocumentViewController.mm:33

#0      0x0000000100ed41d0 in ::-[DocumentViewController viewWillAppear:](BOOL)
at /Volumes/TML13/lo/online-ios-co-4/ios/Mobile/DocumentViewController.mm:71

#0      0x0000000100e406d4 in ::-[Document loadFromContents:ofType:error:](id,
NSString *, NSError **) at
/Volumes/TML13/lo/online-ios-co-4/ios/Mobile/Document.mm:54

When one then switches back to the Nextcloud app, this:

#0      0x0000000100ee0420 in ::-[AppDelegate
applicationWillResignActive:](UIApplication *) at
/Volumes/TML13/lo/online-ios-co-4/ios/Mobile/AppDelegate.mm:246

#0      0x0000000100ee0460 in ::-[AppDelegate
applicationDidEnterBackground:](UIApplication *) at
/Volumes/TML13/lo/online-ios-co-4/ios/Mobile/AppDelegate.mm:249

And when one then chooses another document, and tells the Nextcloud app to open
that one in Collabora Office, this:

#0      0x0000000100ee04a0 in ::-[AppDelegate
applicationWillEnterForeground:](UIApplication *) at
/Volumes/TML13/lo/online-ios-co-4/ios/Mobile/AppDelegate.mm:252

#0      0x0000000100ee0598 in ::-[AppDelegate
application:openURL:options:](UIApplication *, NSURL *, NSDictionary *) at
/Volumes/TML13/lo/online-ios-co-4/ios/Mobile/AppDelegate.mm:262

#0      0x0000000100ee04e0 in ::-[AppDelegate
applicationDidBecomeActive:](UIApplication *) at
/Volumes/TML13/lo/online-ios-co-4/ios/Mobile/AppDelegate.mm:255

#0      0x0000000100ed3b0c in ::-[DocumentViewController viewDidLoad]() at
/Volumes/TML13/lo/online-ios-co-4/ios/Mobile/DocumentViewController.mm:33

Interesting. Presumably in the -[AppDelegate application:openURL:options:] we
should save (?) and close an existing document?</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>