I am developing cordova windows app.
I need solution to add facebook and google login to my app.
If any one knows, please provide steps to integrate.
Thanks.
The easiest way to do this would be by adding plugins to your app. Here are a couple I found on npmjs.com (note that there are others out there -- this was just a cursory search):
cordova-plugin-facebook
cordova-plugin-googleplus
Instructions on how to install and use these plugins can be found at the links above. Generally to install a plugin, it's a call to:
cordova plugin add <pluginid> --save
This adds the plugin to your app (you have to be in that app directory for the call to work), and adds a line to your config.xml file.
Related
I am building a package for macOS, and I would like to include a package plugin. If I do so, even if I notarize the package, this dialog appears on launch:
Can it be somehow removed ? Thanks
No. This cannot be removed. It is a security feature to inform the user.
Instead of using a plug-in, you may be able to do what you want with Installer JS scripts.
I am a beginner in Xamarin forms. I have installed the plugin
https://github.com/jamesmontemagno/StoreReviewPlugin
I haven't found any usage documents on how to initialize/ how to do the setup for using the plugin when i looked on the web.
How can I display the prompt to the user using this plugin?
I just did a test and you do not need any additional steps to use this plugin.
Install this plugin through manage nuget packages and the in your project:
Use the namespace:
using Plugin.StoreReview;
Use the method:
CrossStoreReview.Current.OpenStoreListing("appid");
You need to test with a real device instead of a simulator.
The Store Review Nuget plugin has been updated to v3 recently thanks to the new (August 2020) Android native Play Core library so that it displays an In-App Review on both iOS & Android:
https://devblogs.microsoft.com/xamarin/android-in-app-reviews/
So now, initializing and setup is a lot easier and you don't need to pass the appid anywhere, it will be shown directly in the app
I building Bookmarks manager app in Nativescript. i am looking for a plugin related to web intent, but i could find any. If any one have any idea to achieve similar functionality like this React native plugin for intent, Please help
Thanks in advance
It's quite straight forward on Android, you would use JavaProxy to create an activity Or simply use your NativeScript activity if you want to open your application itself upon sharing, add the same intent-filter under that activity in AndroidManifest.xml file.
With iOS, there is an option feature request for building app extensions. But still there are some POCs for app extensions available on Github which seems to require some manual steps as mentioned in the Github issue.
I'm trying to migrate an Angular app to a shared codebase with Nativescript using the new #nativescript/schematics, however, I'm having problems importing my Angular library when building the mobile version of the app. I used the angular-cli to create the library (ng generate library).
For the web version, all I had to do was build the library separately using ng build library-name which then allowed me to import it into the main application.
How can I build a mobile version of the library that can be imported into the main application when running tns run ios --bundle? I've already migrated the components and module of the library with appropriate *.tns files.
Any help is appreciated
I had the same problem. Nativescript cli do not have this feature where we can build an angular library into npm package and use it in other projects.
I tried a workaround and it worked for me. Write a script to copy all of your project files into another directory and replace all *.tns.ts, *tns.html and *.tns.scss. files with *.ts, *.html and *.scss respectively. Then build these files using regular ng command. You can add a build configuration for the same in angular.json file to build from the copied directory. I hope it helps.
I'm sorry this is just a hyperlink answer but the space required to answer this, in my opinion, is way too large. I just finished finalizing a repo I've been working on to do exactly this. I have a whole slew of angular web libraries that I now want to make available for use on mobile using NativeScript. I have put everything I have learned so far into this repo and I hope it helps you too.
Thanks for the final push/idea #Rohit, a script for doing what he suggests is in the test-lib/gulpfile.js of this repo.
I currently have a Cordova project with 2 platforms: Android and iOS
I'm trying to add "OSX" with this:
https://github.com/apache/cordova-osx
However the documentation is quite hard to follow and I can't seem to get it to work properly.
Does anyone have any idea on how to do this? or more precise step by step instructions?
The Cordova CLI does not support OSX project targets.
In your project working directory root, type in:
cordova platform list
... to see the available and installed platforms.
just wondering if anyway gots this running ? actually I tried to load cordova from master. Later I tried to applied the patch which did NOT worked. So I did what the patch did by hand.
Anyway after the full cycle still "platform list" does not changed ?
So I assume there are more steps to be done, before OSX is added as a new platform?