cordova - Phonegap (Android) app crashes immediately when i call facebook login function -



cordova - Phonegap (Android) app crashes immediately when i call facebook login function -

i creating android app using phonegap (cordova v. 2.9). there login via facebook alternative in app. have done setup facebook connect plugin, when click on facebook login button calls facebooklogin() function app crashes message "unfortunetly, appname has stopped" there no facebook app installed in emulator should work browser login, in case if app not installed. have implemented few moths ago working fine in app time having trouble. idea? error logs following....

06-24 01:39:44.673: d/cordova(1456): onpagefinished(file:///android_asset/www/index.html) 06-24 01:39:44.673: d/cordovaactivity(1456): onmessage(onpagefinished,file:///android_asset/www/index.html) 06-24 01:39:45.563: d/dalvikvm(1456): gc_for_alloc freed 338k, 11% free 3685k/4096k, paused 36ms, total 41ms 06-24 01:39:46.133: d/cordovalog(1456): file:///android_asset/www/js/cdv-plugin-fb-connect.js: line 12 : endpoint saved gif89a���������������������!���������,��������������d��; 06-24 01:39:46.133: i/chromium(1456): [info:console(12)] "endpoint saved gif89a 06-24 01:39:50.663: i/deprecation notice(1456): replace ctx.setactivityresultcallback() cordova.setactivityresultcallback() 06-24 01:39:50.663: i/deprecation notice(1456): replace ctx.runonuithread() cordova.getactivity().runonuithread() 06-24 01:39:50.703: e/activitythread(1456): failed find provider info com.facebook.katana.provider.attributionidprovider 06-24 01:39:50.733: w/resourcetype(1456): no bundle identifier when getting value resource number 0x00000000 06-24 01:39:50.733: d/androidruntime(1456): shutting downwards vm 06-24 01:39:50.733: w/dalvikvm(1456): threadid=1: thread exiting uncaught exception (group=0xb2accba8) 06-24 01:39:50.753: e/androidruntime(1456): fatal exception: main 06-24 01:39:50.753: e/androidruntime(1456): process: com.android.on_me, pid: 1456 06-24 01:39:50.753: e/androidruntime(1456): android.content.res.resources$notfoundexception: resource id #0x0 06-24 01:39:50.753: e/androidruntime(1456): @ android.content.res.resources.getvalue(resources.java:1123) 06-24 01:39:50.753: e/androidruntime(1456): @ android.content.res.resources.getdrawable(resources.java:698) 06-24 01:39:50.753: e/androidruntime(1456): @ com.facebook.android.fbdialog.createcrossimage(fbdialog.java:107) 06-24 01:39:50.753: e/androidruntime(1456): @ com.facebook.android.fbdialog.oncreate(fbdialog.java:81) 06-24 01:39:50.753: e/androidruntime(1456): @ android.app.dialog.dispatchoncreate(dialog.java:361) 06-24 01:39:50.753: e/androidruntime(1456): @ android.app.dialog.show(dialog.java:262) 06-24 01:39:50.753: e/androidruntime(1456): @ com.facebook.android.facebook.dialog(facebook.java:839) 06-24 01:39:50.753: e/androidruntime(1456): @ com.facebook.android.facebook.startdialogauth(facebook.java:368) 06-24 01:39:50.753: e/androidruntime(1456): @ com.facebook.android.facebook.authorize(facebook.java:231) 06-24 01:39:50.753: e/androidruntime(1456): @ com.facebook.android.facebook.authorize(facebook.java:147) 06-24 01:39:50.753: e/androidruntime(1456): @ org.apache.cordova.facebook.connectplugin$1.run(connectplugin.java:108) 06-24 01:39:50.753: e/androidruntime(1456): @ android.os.handler.handlecallback(handler.java:733) 06-24 01:39:50.753: e/androidruntime(1456): @ android.os.handler.dispatchmessage(handler.java:95) 06-24 01:39:50.753: e/androidruntime(1456): @ android.os.looper.loop(looper.java:136) 06-24 01:39:50.753: e/androidruntime(1456): @ android.app.activitythread.main(activitythread.java:5017) 06-24 01:39:50.753: e/androidruntime(1456): @ java.lang.reflect.method.invokenative(native method) 06-24 01:39:50.753: e/androidruntime(1456): @ java.lang.reflect.method.invoke(method.java:515) 06-24 01:39:50.753: e/androidruntime(1456): @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:779) 06-24 01:39:50.753: e/androidruntime(1456): @ com.android.internal.os.zygoteinit.main(zygoteinit.java:595) 06-24 01:39:50.753: e/androidruntime(1456): @ dalvik.system.nativestart.main(native method) 06-24 01:39:52.753: i/process(1456): sending signal. pid: 1456 sig: 9

i facing same issue. used illustration js code login in github page , when run in emulator app crashes same way. though haven't found out solution check below thread , might help you.

failed find provider info com.facebook.katana.provider.attributionidprovider

cordova facebook-android-sdk

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 -