It seems like you are experiencing an issue with the iOS Document Picker in your document editing app. The problem you described, where the WasCancelled event is incorrectly invoked instead of the DidPickDocumentAtUrls event, can be frustrating. Here are a few suggestions that might help you troubleshoot and resolve the issue:
Verify permissions: Ensure that your app has the necessary permissions to access and write to the chosen file location. Check the required entitlements and file access permissions for the cloud storage services you are testing, such as Google Drive or Dropbox.
Test with different cloud storage services: Since you mentioned that the issue occurs specifically when saving to Google Drive but not when using other services, it might be worth investigating if there are any specific differences or limitations in the way each cloud storage provider handles file operations. This could help pinpoint if the problem is related to a particular service.
Test on different devices and iOS versions: It's possible that the issue could be device or iOS version-specific. Test your app on different iOS devices and versions to see if the problem persists consistently or if it varies.
Check for any additional delegate methods: Review the documentation and make sure you are implementing all the necessary delegate methods correctly. There might be additional delegate methods that need to be handled to capture the desired behavior.
Consider using alternative approaches: If the issue persists, you could explore alternative approaches for file handling and saving. For example, you might consider using the iOS File Provider framework or investigating third-party libraries that offer more flexible file management capabilities.
If the problem persists after trying these suggestions, you may need to reach out to the Apple Developer Support or the Xamarin community for further assistance. They will have more expertise and resources to help you debug and resolve the issue specific to your app's implementation.also visit fontbots