android - how to use Google plus integration in titanium? -



android - how to use Google plus integration in titanium? -

i working application in have integrate google plus using titanium.

var win = ti.ui.createwindow({ barcolor : '#000', navbarhidden : true }); var texttoshare = encodeuricomponent('this text 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(); });

it causes 404 (the requested url not found on server) error in webview, after google business relationship login.i want integrate google plus in titanium suggestions?

you have log in google developers console , in project enable google+ api , within google+ api settings left side menu chose credentials , create new client id installed application providing bundle name (value ti.app.id).

notice bundle name has contain @ to the lowest degree 1 . character:

testapp – invalid mycompany.testapp – correct

android titanium google-plus titanium-mobile titanium-modules

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -