Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't select Personal iCloud as storage provider #64

Closed
elliotsoomro opened this issue Sep 13, 2021 · 17 comments
Closed

Can't select Personal iCloud as storage provider #64

elliotsoomro opened this issue Sep 13, 2021 · 17 comments
Assignees
Labels
Bug You've found a bug in Raivo Extra input required The issue/request contains insufficient information, or I have a question about the issue.

Comments

@elliotsoomro
Copy link

Describe the bug
While trying to select a storage provider, the option Personal iCloud is greyed out and cannot be selected. Is it because I'm on iOS 15 beta?

To Reproduce
Go to initial setup and try to select storage provider.

Expected behavior
It should be possible to choose Personal iCloud as a storage provider, or at least provide a message explaining why it is not available.

Screenshots
Please note that the last option is also slightly clipped, as reported in issue #43
IMG_7F1DFA90BA11-1

Smartphone

  • Device: iPhone X
  • OS: 15.0 beta
  • Version 1.2.2
@elliotsoomro elliotsoomro added the Bug You've found a bug in Raivo label Sep 13, 2021
@tijme
Copy link
Contributor

tijme commented Sep 27, 2021

Hi @elliotsoomro,

Are you currently signed into iCloud on your iPhone? If so, could you force quit the app and restart, to see if it works? If it doesn't work after the restart I'm afraid this is a bug, but it's going to be difficult debugging as I've never experienced the issue before.

@tijme tijme added the Extra input required The issue/request contains insufficient information, or I have a question about the issue. label Sep 27, 2021
@mmoga
Copy link

mmoga commented Oct 4, 2021

Perhaps related, I am on an iPhone 11 Pro iOS 15 and am unable to select anything under the Synchronization area of the settings (besides Receivers, which works).

It says “Synchronization is currently disabled” despite iCloud being on. I’ve turned it off an on again and hard reset the app with no avail.

@elliotsoomro
Copy link
Author

@tijme Yes, I am signed into iCloud and the app Raivo OTP is turned on in the iCloud settings. Tried to force quit the app and restart, but the error remains in setup.

@hafizhalwi
Copy link

I do have the same issue and have tried the proposed solution. The issue remains, unfortunately.

@tijme
Copy link
Contributor

tijme commented Oct 14, 2021

Have you enabled Raivo OTP in your iCloud settings? It should be enabled by default, but it could be off on your device. Could you check this?

Settings -> Apple ID > iCloud > Scroll down to Raivo OTP and make sure it's enabled.

After that relaunch the app and see if it works :)

@mmoga
Copy link

mmoga commented Oct 14, 2021

Perhaps related, I am on an iPhone 11 Pro iOS 15 and am unable to select anything under the Synchronization area of the settings (besides Receivers, which works).

It says “Synchronization is currently disabled” despite iCloud being on. I’ve turned it off an on again and hard reset the app with no avail.

@tijme I've tried that and it didn't work 😔

@tijme
Copy link
Contributor

tijme commented Oct 14, 2021

@mmoga, please be aware that after selecting a synchronization provider, it cannot be changed. Only if you sign out and sign in again.

I actually meant the iCloud settings in the iOS settings app, not the settings tab of Raivo OTP. Did you check that too?

If it still doesn't work, could you do some debugging for me? It would greatly help if you could enable local logging in the Raivo OTP settings app. Afterwards you can sign out, and sign in again, after which you can export the log and send it to me. It will probably show why the iCloud option wasn't enabled.

@mmoga
Copy link

mmoga commented Oct 15, 2021

@tijme, yes that's what I did in the iCloud settings. The app says if I sign out then my local data for it will be deleted, which could be bad for me.

@elliotsoomro
Copy link
Author

@tijme Suddently I am able to choose Personal iCloud as storage provider! I don't think that I have changed anything, other than updated the OS. I will give it a try and get back to you if I encounter any issues.

@tijme
Copy link
Contributor

tijme commented Oct 17, 2021

Hmm, this is becoming a really weird issue. I'm hoping someone can give me the debug log from the app settings page. It would greatly help me to find the root cause. I'm currently not able to reproduce the issue yet.

@mmoga
Copy link

mmoga commented Jan 26, 2022

I finally got around to moving back to Authy. After removing all OTP accounts from Raivo the iCloud settings automatically fixed itself: image

Unfortunately though, this means I have no error logs to share.

@oliviercp
Copy link

oliviercp commented Feb 13, 2022

@tijme I have the same problem and got around to getting the log as you suggested. I love the app so far but the lack of sync is unfortunately a deal breaker for my use case, so I'm very motivated to seeing fixed. Here is what I got:

2022-02-13 02:04:05  MiscellaneousForm.buildAdvancedSection():407 WARNING: Signing out of the application
2022-02-13 02:04:05  StateHelper.reset():168 WARNING: Resetting the state and all data of the app
2022-02-13 02:04:05  StorageHelper.clear():71 WARNING: Removing all keychain and secure enclave entries
2022-02-13 02:04:05  StorageHelper.setRealmFilename():123 VERBOSE: Setting realm filename
2022-02-13 02:04:05  StateHelper.getCurrentState():84 VERBOSE: State: LOCAL_DATABASE_UNKNOWN
2022-02-13 02:04:05  StateHelper.getCurrentState():84 VERBOSE: State: LOCAL_DATABASE_UNKNOWN
2022-02-13 02:04:05  BaseSyncer.disable():46 VERBOSE: Disabling syncer
2022-02-13 02:04:05  ApplicationDelegate.setCorrectStoryboard():158 VERBOSE: Changing Storyboard: Setup
2022-02-13 02:04:07  SetupStorageViewController.accountSuccess():72 VERBOSE: Account resolved for syncer: com.finnwea.RaivoOfflineSyncer
2022-02-13 02:04:07  SetupStorageViewController.challengeSuccess():105 VERBOSE: Challenge resolved for syncer: com.finnwea.RaivoOfflineSyncer
2022-02-13 02:04:07 com.apple.NSXPCConnection.m-user.com.apple.cloudd SetupStorageViewController.accountError():89 ERROR: Account error for syncer: com.finnwea.RaivoCloudKitSyncer
2022-02-13 02:04:07 com.apple.cloudkit.operation-13146217714E685B.callback SetupStorageViewController.challengeError():120 ERROR: Challenge error for syncer: com.finnwea.RaivoCloudKitSyncer
2022-02-13 02:04:35  StorageHelper.setSynchronizationProvider():138 VERBOSE: Setting synchronization provider
2022-02-13 02:04:35  StorageHelper.setSynchronizationAccountIdentifier():153 VERBOSE: Setting synchronization account identifier
2022-02-13 02:04:35  StorageHelper.setEncryptionPassword():89 VERBOSE: Setting encryption password
2022-02-13 02:04:35  StorageHelper.setEncryptionKey():245 VERBOSE: Setting encryption key
2022-02-13 02:04:35  StorageHelper.setBiometricUnlockEnabled():295 VERBOSE: Setting biometric unlock enabled
2022-02-13 02:04:35  StateHelper.getCurrentState():98 VERBOSE: State: DATABASE_AND_ENCRYPTION_KEY_AVAILABLE
2022-02-13 02:04:35  StateHelper.getCurrentState():98 VERBOSE: State: DATABASE_AND_ENCRYPTION_KEY_AVAILABLE
2022-02-13 02:04:35  BaseSyncer.enable():40 VERBOSE: Enabling syncer
2022-02-13 02:04:35  ApplicationDelegate.setCorrectStoryboard():158 VERBOSE: Changing Storyboard: Main
2022-02-13 02:04:40  StateHelper.getCurrentState():98 VERBOSE: State: DATABASE_AND_ENCRYPTION_KEY_AVAILABLE
2022-02-13 02:04:40  StateHelper.getCurrentState():98 VERBOSE: State: DATABASE_AND_ENCRYPTION_KEY_AVAILABLE
2022-02-13 02:04:40  StateHelper.getCurrentState():98 VERBOSE: State: DATABASE_AND_ENCRYPTION_KEY_AVAILABLE
2022-02-13 02:04:40  StateHelper.getCurrentState():98 VERBOSE: State: DATABASE_AND_ENCRYPTION_KEY_AVAILABLE
2022-02-13 02:04:40  StateHelper.getCurrentState():98 VERBOSE: State: DATABASE_AND_ENCRYPTION_KEY_AVAILABLE
2022-02-13 02:04:40  StateHelper.getCurrentState():98 VERBOSE: State: DATABASE_AND_ENCRYPTION_KEY_AVAILABLE
2022-02-13 02:04:46  StorageHelper.setFileLoggingEnabled():315 VERBOSE: Setting file logging enabled
2022-02-13 02:04:46  global.initializeFileLogging():62 VERBOSE: File log destination initialized

@oliviercp
Copy link

FWIW, it looks like issues #104 and #78 are the same as this one. Might be worth consolidating the conversation

This was referenced Feb 20, 2022
@tijme
Copy link
Contributor

tijme commented Feb 20, 2022

From the Apple docs, I read about the following possible causes;

  • The device has an iCloud account but the user disables iCloud Drive.
  • The device has an iCloud account with restricted access.
  • The device doesn’t have an iCloud account.

Is any of these conditions true for you?

@oliviercp
Copy link

oliviercp commented Feb 20, 2022

Solved!

I wasn't sure what an "iCloud account with restricted access" meant so I explored my settings. I ended up trying to enable "iCloud Drive", which was disabled before. And voilà, it works! I'm now able to select the backup method as my Personal Cloud in Raivo. Hurray! I didn't know it was a requirement, but apparently it is. I also tried to enable "iCloud Backup" but it didn't seem to change a thing; iCloud Drive was the one that needed enabled. Problem solved for me; I'm curious whether it's the same issue for others.

Maybe the app could make this requirement clearer at set up?

@LedaThemis
Copy link

@oliviercp +1

I was facing the same issue, and after enabling iCloud Drive, it allowed me to select "Personal iCloud"

@tijme
Copy link
Contributor

tijme commented Jul 22, 2022

Fixed in 87fde6f. Added explanation to enable iCloud Drive when setting up Apple iCloud sync. Closing this as it will be published to public soon (within a few weeks).

@tijme tijme closed this as completed Jul 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug You've found a bug in Raivo Extra input required The issue/request contains insufficient information, or I have a question about the issue.
Development

No branches or pull requests

6 participants