Jump to content
Welcome to our new Citrix community!
  • 0

Xamarin forms MAM SDK initialization failed


Mario Mora1709163095

Question

Hi 

I'm trying to implement MAM for a xamarin forms iOS project but the initialization fails with this error

XAMARIN Forms MAM SDK initialization failed - MAM Error: Code=1001; Domain=CTXMAMCoreErrorDomain; Message=The operation couldn’t be completed. (CTXMAMCoreErrorDomain error 1001.)

 

I tried either the initialization with InitializeSDKsWithCompletionBlock on appDelegate, and coreService.InitializeSdks() on App.cs with same results

 

I think I've configured all according the guide, the script executes with no errors, also I've checked the results and found the mdx file, and the pakage contains the Citrix.plist file, all looks good. 

Also the execution calls SdksInitializedAndReady but with "online" parameter to false. The unique step we didn't perform yet is to upload the generated mdx file to the server, because it's not ready yet...

is this the underlaying problem? I couldn't find any information about in the documentation, is there any documentation I'm missing?  

 

 Also I find in logs some errors like these:

-canOpenURL: failed for URL: "citrixreceiverfd://" - error: "The operation couldn’t be completed. (OSStatus error -10814.)"

[CTXMAMCoreFramework:ERROR:com.citrix.mamsdk.ConfigManagerSharedVault:8703]-:-[CTXMAMDataStorage getDataAsObjectForKey:outError:]_block_invoke: getDataForKey policyMode, failed because the value was not found in the data store.

[CTXMAMCoreFramework:WARNING:com.apple.root.default-qos.overcommit:8703]-:-[CTXMAMConfigManager getConfigAsIdForKey:fromVault:defaultValue:outError:]: [CTXMAMDataStorage getDataAsObjectForKey:] returned with error: Error Domain=CTXMAMDataStorageError Code=90007 "The specified value was not found in the data store." UserInfo={NSLocalizedDescription=The specified value was not found in the data store.}, will return default value instead.
T

 

thanks in advance

Mario

Link to comment

1 answer to this question

Recommended Posts

  • 0

Hi Mario, 

 

Quote

The unique step we didn't perform yet is to upload the generated mdx file to the server, because it's not ready yet...

is this the underlaying problem? 

 

Yes, this is the reason you are seeing an error.

The device needs to have the Secure Hub app installed and be enrolled to your CEM server. The generated .mdx file for the Xamarin app then also needs to be uploaded to the CEM server.

We will endeavor to make the documentation on this clearer in future.

 

Thanks, 
David

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...