IBM Worklight - Combine Facebook SDK Java code in Worklight application

廉价感情. 提交于 2020-01-05 10:06:29

问题


I can use the Facebook SDK for Android to login with Facebook and get user information. When doing this all of the code is in src/com.name/MainActivity.java.

But when using Worklight, everything I code is in Worklight now, in assest/www/default and nothing in MainActivity.java.

My question is, if I've used the Facebook SDK in MainActivity.java how can I use that in the Worklight app?


回答1:


First please familiarize yourself with creating Cordova plug-ins in Worklight (specifically, this training module and sample app).

That's how you should integrate your native code in a Worklight app, by using a Cordova plug-in.

Otherwise, there is also an official plug-in by Facebook for Cordova (which should be integrated in the same way as you learn in the training module).



来源:https://stackoverflow.com/questions/17637355/ibm-worklight-combine-facebook-sdk-java-code-in-worklight-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!