0

我試圖使用forceios創建Salesforce社區遠程混合應用程序。我已經將所有配置設置爲相同。
我現在可以登錄到應用程序。
但是,當我登出並退出應用程序;然後再運行應用程序,該應用程序直接登錄我,舊的登錄會話似乎還沒有被清除。
這裏的應用程序的控制似乎是在科爾多瓦內,我無法做任何事情。
當用戶在遠程混合應用程序內點擊註銷時,是否有註銷用戶的方法?SalesForce - 科爾多瓦遠程混合應用程序註銷問題 - ios

我能夠訪問科爾多瓦圖書館和取行動時,註銷通過使用壓在CVViewcontroller

- (BOOL)webView:(UIWebView*)theWebView shouldStartLoadWithRequest:(NSURLRequest*)request navigationType:(UIWebViewNavigationType)navigationType 
{ 
    NSURL* url = [request URL]; 
    NSLog(@"Request : %@",request); 
    if ([[NSString stringWithFormat:@"%@",url] containsString:@"logout.jsp"]) 
    { 
    // Logout Pressed 
    } 
} 

下面我想知道是否有可能退出該應用程序的會議來自cordova庫代碼。

該問題已被解決here。這是關於編輯salesforce apex代碼的。沒有編輯頂點代碼有沒有不同的方式來做到這一點?

回答

0
// Delete all cached URLrequests 
NSURLCache *sharedCache = [NSURLCache sharedURLCache]; 
[sharedCache removeAllCachedResponses]; 

// Delete all stored cookies 
NSHTTPCookieStorage *cookieStorage = [NSHTTPCookieStorage sharedHTTPCookieStorage]; 
NSArray *cookies = [cookieStorage cookies]; 
id acookie; 
for (acookie in cookies) { 
    [cookieStorage deleteCookie:acookie]; 
} 
相關問題