I'm developing a HTML5-based iOS app with PhoneGap. I'm using the latest version of PhoneGap 2.2.0. I want to include a share button, so users can share a message on Facebook and Twitter. I did some research and found my way to ShareKit 2.0. I actually managed to complete the necessary steps described on the wiki. My project is able to build successfully. :)
From here on I'm stuck. I can't find anything how to implement this in my JavaScript (jQuery) project. The old ShareKitPlugin describes a few steps, but it doesn't work. So I guess it changed since 2.0.
Is there another tutorial of some kind I can follow? Or is there another solution to include Facebook and Twitter share buttons? What I like about the ShareKit plugin is that it uses the native FB/Twitter apps installed on your phone (if I am correct assuming this).
Did you follow the steps on the "Adding the Plugin to the Project" section on phonegap plugin page?
If so, after adding the ShareKitPlugin.js import at your html file, like this:
<script src="ShareKitPlugin.js"></script>
you just need to call the share method, like this:
window.plugins.shareKit.share("text that will be shared", "http://google.com");
Related
I'm trying to develop an ocr app with the Nativescript plugin:
https://market.nativescript.org/plugins/nativescript-ocr
https://github.com/EddyVerbruggen/nativescript-ocr
and it seems that the example doesn't works or I'm doing something wrong. I read something about Firebase ML kit but I have no idea about that and if it works offline (Offline work is a must for me).
https://github.com/EddyVerbruggen/nativescript-plugin-firebase/blob/master/docs/ML_KIT.md
Could be deprecated the first plugin?
might I use firebase?
could it use with nativescript core (only js)?
It works offline?
Any idea about how to start?
Yes, the OCR plugin is kind of deprecated, not actively maintained anymore.
Firebase ML-Kit is recommended and it has different methods you could use for text recognition, one works on device and another on cloud. Refer the same read me you have linked in your question.
I built a chatbot based on API.ai and I'v integrate it with Heroku and Facebook messenger and it is working well. Now, I would like to to integrate this chatbot to Buildfire.com in order to publish it as IPhone and Android apps.
Can someone help me with this case please?
So you can do this by creating a custom BuildFire plugin. To get more information about how to do this click here
https://github.com/BuildFire/sdk/wiki
Its pretty simple. Using the same Javascript, HTML and CSS that you used for your web application you should be able to migrate that into a BuildFire plugin.
There are many video tutorials on this here
https://www.youtube.com/watch?v=IZcvBZT-zjY&list=PLnq_waykAGlgsERwxHmGNokE6WIeVeH0I
Hope this helps
I am having a really difficult time getting the cordova plugin authored by OAuth.io (https://github.com/oauth-io/oauth-phonegap) to work within the an ionic phone build. Everything is setup based off of the desktop version of the JS file they provide, wrapped in an Angular service for ease of unit testing, with another factory handling the actual flow of login/logout etc...
The issue I am running into is that now after switching to the plugin version and removing the referenced JS version, nothing works any longer. I can no longer pull up the facebook login page, nor have the global object 'OAuth' recognized outside of the injected service. The furthest I got in troubleshooting the issue is that the OAuth object is created, at least initially as I can log out the object, but anything after that does not appear to be recognized.
My web (working) version of code example is on plunker here: http://plnkr.co/edit/B4HdkkBKDP3Xv2riQGui?p=preview
Any thoughts on further troubleshooting or if there is another way of accomplishing this goal would be greatly appreciated!
We just published the version 0.2.0 of the OAuth.io Cordova/Phonegap SDK, which fixes the issue with Ionic.
Now you should be able to use the cordova plugin in a ionic app without any trouble, like this:
$ cordova plugin add https://github.com/oauth-io/oauth-phonegap
This version also contains features that were missing from the sdk, like the cache and the unified user info method.
You can get more information about all this on our github page:
https://github.com/oauth-io/oauth-phonegap
Hope this helps :)
I'd like to build a chrome extension in angular using AngularJS which interacts with Twitter.
I have some experience in integrating twitter with node.js but far less when it comes to angular only.
I'd like to use OAuth.js to connect to twitter (http://oauth.googlecode.com/svn/code/javascript/) and therefore I was wondering how to integrate this with Angular?
Do I need to build a provider and rewrite all the function I need from OAuth.js or is there any quick way to do it?
Many thanks
You can use ng oauth plugins that other people wrote like these:
enginous/angular-oauth:
https://github.com/enginous/angular-oauth
andreareginato/ng-oauth:
https://github.com/andreareginato/ng-oauth
I haven't used them myself, but documentation seems straight forward.
Iam using PhoneGap/Cordova + Backbone for developing a cross platform mobile application. Using phonegap i can access almost all the functions of the device. Is there somehow possible to access or change the device's profile using PhoneGap or using backbone ? I searched a lot but couldn't find any relevant results..!!
Is there any documentation available on this ?
Any help will be very much appreciated..!!
I didnt get what you means about "device's profile". You talking about accounts?
About Phonegap/Cordova you can do everything that a native app can. But sometimes you need to write a native plugin to interact with device. I already had to do that to do push notifications using a third lib.
You write a native class to do something, register it in plugins, give permissions and then call it with your javascript.
You can find documentation here: http://cordova.apache.org/docs/en/3.4.0/guide_hybrid_plugins_index.md.html#Plugin%20Development%20Guide
Add this cordova plugin into your project.
https://github.com/apache/cordova-plugin-device
Put these line of codes into your view page
alert(device.cordova);
alert(device.model);
alert(device.name);
alert(device.platform);
alert(device.uuid);
alert(device.version);