How to implement Auth0 SSO in Cordova without Angular - javascript

I am working on a Cordova Application where it uses only HTML, javascript, and jQuery. I need to implement Auth0 SSO in my application. I came to see all examples are done only in Angular, But I need to implement them in javascript.
Anyone who implemented Auth0 SSO with javascript, please guide me.

For every need there's a Cordova plugin. In this case, the auth0-cordova plugin is the first one I found, probably there are others too. Does not require Ionic nor Angular, just vanilla Apache Cordova.

Related

Nativescript core OCR plugin

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.

Buildfire: How to integrate api,ai to Buildfire plugin

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

Using external libraries

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.

Change device profile using phonegap / cordova

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);

Using ShareKit 2.0 in a HTML5 app

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");

Categories