我使用email composer plugin爲我的離子應用程序,我遇到了iOS 9的問題,我無法使用外部電子郵件應用程序。我已經嘗試添加下面的plist,因爲它是一個url方案,但這似乎沒有幫助。科爾多瓦離子電子郵件插件不工作在iOS 9由於URL
<key>LSApplicationQueriesSchemes</key>
<array>
<string>mailto</string>
</array>
錯誤Xcode中給出了:
2015-10-06 22:10:45.037 NSP[1830:29571] -canOpenURL: failed for URL: "mailto:[email protected]" - error: "(null)"
2015-10-06 22:10:45.044 NSP[1830:29571] -canOpenURL: failed for URL: "mailto:[email protected]" - error: "(null)"
2015-10-06 22:10:45.047 NSP[1830:29571] -canOpenURL: failed for URL: "mailto:[email protected]" - error: "(null)"
是的,它是在一個單一的通話3個錯誤。這裏是通話代碼:
$cordovaEmailComposer.isAvailable().then(function() {
$cordovaEmailComposer.open({
to: [], // email addresses for TO field
cc: [], // email addresses for CC field
bcc: [], // email addresses for BCC field
attachments: [], // file paths or base64 data streams
subject: item.name, // subject of the email
body: item.name + " download link: " + item.link, // email body (for HTML, set isHtml to true)
isHtml: false, // indicats if the body is HTML or plain text
}, function() {
//console.log('email view dismissed');
}, this);
}, function() { //Not available
MessageBox.ShowAlert("Unavailible", "Email is currently unavailable on this platform");
});
有什麼辦法解決這個問題嗎?它適用於Android和早期版本的iOS,或者它是一個我無法修復的插件問題?一切都在更新。可能的解決方法或其他插件,使其工作?我嘗試瞭解決方案here,但我不認爲這與我的問題有關。
您是否解決了您的問題?如果是這樣,答案是什麼? – JesseMonroy650
不,我沒有,但有人在他們的github頁面上打開了一個問題鏈接到這個問題https://github.com/katzer/cordova-plugin-email-composer/issues/142 –
添加LSApplicationQueriesSchemes並沒有運氣後,我嘗試了一個實際的設備,它確實工作正常。它只是不能在模擬器中工作。 –