2

我们有一个集成了 Good Dynamics SDK 的应用程序,它应该通过 Good For Enterprise 发送电子邮件。

我们使用以下代码调用 send-email API:

BOOL isRequestAccepted = [GDServiceClient sendTo:@"com.good.gmmiphone" withService:@"com.good.gfeservice.send-email" withVersion:@"1.0.0.0" withMethod:@"sendEmail" withParams:params withAttachments:attachments bringServiceToFront:GDEPreferPeerInForeground requestID:&requestId error:&error];

params 是一个 NSDictionary,其值为:

{
    bcc =     (
        "example@example.com",
        "example@example.com"
    );
    body = "example body";
    cc =     (
        "example@example.com",
        "example@example.com"
    );
    subject = "Diagnostic subject line";
    to =     (
        "example@example.com",
        "example@example.com"
    );
}

该方法返回 TRUE,错误为零。但电子邮件不会发送到指定的电子邮件 ID。

以下是日志:

Apr 15 16:49:19  iDemo-iPhone[2464] <Warning>: SCCX509Support::getServerCertificate: certificate \icc_certificate\com.good.gmmiphone.der is not in the cache

Apr 15 16:49:26  iDemo-iPhone[2464] <Notice>: PushConnectionEngine: Connection opened.

Apr 15 16:49:26  iDemo-iPhone[2464] <Notice>: PushConnectionEngine::isPushSocketValid Internal socket for PushConnectionEngine = 0x14e009740 is valid. 

Apr 15 16:49:26  iDemo-iPhone[2464] <Notice>: PolicyComplianceChecker::checkComplianceUnlocked mdmrequired = 0

Apr 15 16:49:26  iDemo-iPhone[2464] <Notice>: PolicyComplianceChecker::checkComplianceUnlocked shouldWipe = 0

Apr 15 16:49:26  iDemo-iPhone[2464] <Notice>: PolicyComplianceChecker::checkComplianceUnlocked shouldBlock = 0

Apr 15 16:49:26  iDemo-iPhone[2464] <Notice>: GDSecureStorage::setAuthDelegatePolicy, auth delegate policy: com.good.gdgma

Apr 15 16:49:26  iDemo-iPhone[2464] <Notice>: PolicyProcessor::enforceSecurityPolicy auth delegation pair req

Apr 15 16:49:26  iDemo-iPhone[2464] <Notice>: AUTH  PolicyProcessorAuthDelegate::checkAuthDelegatePairIfNew

Apr 15 16:49:26  iDemo-iPhone[2464] <Notice>: AUTH  GDSCCManager:sendAuthRequest to com.good.gdgma

Apr 15 16:49:26  iDemo-iPhone[2464] <Notice>: AUTH  PolicyProcessorAuthDelegate::checkAuthDelegatePairIfNew OUT, m_requestPending: true

Apr 15 16:49:26  iDemo-iPhone[2464] <Warning>: PushConnectionEngine: Authentication timeout.

Apr 15 16:49:26  iDemo-iPhone[2464] <Notice>: PushConnectionEngine::isPushSocketValid Internal socket for PushConnectionEngine = 0x14e009740 is valid. 

Apr 15 16:49:26  iDemo-iPhone[2464] <Notice>: PushConnectionEngine: Connection closed.

Apr 15 16:49:26  iDemo-iPhone[2464] <Notice>: PushConnectionEngine: Reconnecting in 22 seconds.

Apr 15 16:49:26  iDemo-iPhone[2464] <Notice>: KID   GDDeviceIphone::getSharedGDKID - GDGoodCreatedDeviceIdentifier SA7k59eVj/vUQ4a3C1B5SuTnafdjhikV

Apr 15 16:49:26  iDemo-iPhone[2464] <Notice>: GTContainerComms:sendCommandV2 - CON_REQ=>com.good.gmmiphone 

Apr 15 16:49:27  iDemo-iPhone[2464] <Notice>: KID   GDDeviceIphone::getSharedGDKID - GDGoodCreatedDeviceIdentifier SA7k59eVj/vUQ4a3C1B5SuTnafdjhikV

Apr 15 16:49:27  iDemo-iPhone[2464] <Error>: GTICCManager:sendRequestAsync: not sending request as app is not active state: 1

Apr 15 16:49:27  iDemo-iPhone[2464] <Error>: GTICCManager: Error sending authentication request, will retry with attempt: 1

Apr 15 16:49:27  iDemo-iPhone[2464] <Notice>: UI    GDLoginViewController:viewDidDisappear: (animated = YES) <GDLoginViewController: 0x14d09c000>

Apr 15 16:49:27  iDemo-iPhone[2464] <Notice>: KID   GDDeviceIphone::getSharedGDKID - GDGoodCreatedDeviceIdentifier SA7k59eVj/vUQ4a3C1B5SuTnafdjhikV

Apr 15 16:49:27  iDemo-iPhone[2464] <Error>: GTICCManager:sendRequestAsync: not sending request as app is not active state: 1

Apr 15 16:49:27  iDemo-iPhone[2464] <Error>: GTICCManager: Error sending authentication request, will retry with attempt: 2

Apr 15 16:49:27  iDemo-iPhone[2464] <Notice>: KID   GDDeviceIphone::getSharedGDKID - GDGoodCreatedDeviceIdentifier SA7k59eVj/vUQ4a3C1B5SuTnafdjhikV

Apr 15 16:49:27  iDemo-iPhone[2464] <Error>: GTICCManager:sendRequestAsync: not sending request as app is not active state: 1

Apr 15 16:49:27  iDemo-iPhone[2464] <Error>: GTICCManager: Error sending authentication request, will retry with attempt: 3

Apr 15 16:49:27  iDemo-iPhone[2464] <Notice>: KID   GDDeviceIphone::getSharedGDKID - GDGoodCreatedDeviceIdentifier SA7k59eVj/vUQ4a3C1B5SuTnafdjhikV

Apr 15 16:49:27  iDemo-iPhone[2464] <Error>: GTICCManager:sendRequestAsync: not sending request as app is not active state: 1

Apr 15 16:49:27  iDemo-iPhone[2464] <Error>: GTICCManager: Error sending authentication request, will wait for notification

任何帮助表示赞赏。谢谢!

4

0 回答 0