1
저는 Google과 Titanium을 통합해야하는 애플리케이션으로 작업하고 있습니다.구글 플러스 티타늄 통합 사용 방법?
var win = Ti.UI.createWindow({
barColor : '#000',
navBarHidden : true
});
var textToShare = encodeURIComponent('This text will be shared');
var urlToShare = encodeURIComponent('http://www.company.com');
var webView = Ti.UI.createWebView({
url : 'https://plus.google.com/share?client_id=123456789.apps.googleusercontent.com&continue=' + Ti.App.id + '%3A%2F%2Fshare%2F&text=' + textToShare + '&url=' + urlToShare + '&bundle_id=' + Ti.App.id + '&gpsdk=1.0.0'
});
win.add(webView);
var close = Ti.UI.createButton({
title : 'Close'
});
close.addEventListener('click', function() {
win.close();
});
win.open({
modal : true
});
webView.addEventListener('load', function(e) {
if (e.url.indexOf('https://accounts.google.com') == -1) {
//win.hideNavBar();
} else {
// win.showNavBar();
win.setLeftNavButton(close);
}
});
webView.addEventListener('error', function(e) {
win.close();
});
그것은 구글 계정 login.I 구글 플러스 티타늄 에서 어떤 제안을 통합하려는 후, 웹보기에서 오류 404 (이 서버에 요청 된 URL을 찾을 수 없습니다)의 원인은? 자격 증명 및 이 패키지의 이름을 제공 설치된 응용 프로그램 새로운 클라이언트 ID 만들기