Open alexw-at opened 3 years ago
@alexw-at - did you ever resolve this issue on iOS - I am getting the same behaviour in an Ionic app using this plugin. Like you say it works as expected on Android.
I think this method
does not save the accounts retrieved from response, so when
try to retrieve the accounts in if ([accounts count] == 0) { pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsString:@"No accounts found on device."]; [self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId]; return; } throw the exception.
UPDATE
I have set on XCODE in --> keychain-access-groups manually this value: com.microsoft.adalcache and everything work
signInSilent always gives me the error "No accounts found on device" even after a successful signInInteractive. This only happens on iOS on Android signInSilent works fine.