Web intent plugin in NativeScript - nativescript

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.

Related

How to use the Plugin.Storereview for requesting reviews on Appstore in Xamarin forms Application?

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

How to share from an app to Xamarin macOS

I'm looking to add the availability to my application to receive content through share option from Note native apple application. I want my application appear in the list below.
Thanks, Robin.
You need to add the new project with the share extension and reference it in the main project.
One more critical part is that you need to declare in extension's info.plist which content you want to import.
Also of note, you indicated by the tag that you use Xamarin.Forms. It might be complicated to use Xamarin.Forms for the user interface in the Mac share extension. I would believe it is possible, but I don't think anyone did that and published info on how to do it.

UI testing for react native apps

i am currently working on a UI automated testing project.
my job is to do UI automated testing on applications built via react-native.
the problem is that react-native doesn't provide resource-id.
i tried nativeID, and testID, and it didn't work out.
i tried accessibilityLabel but this is not the way to do it, because it assigns to the content-descp: which is used by the blind mode.
i tried cavy which is an integrated-ui testing tool, but it's very new, and there is not much support, plus it's not quit developped yet.
i tried selendroid, but i am facing some problems while loading the app in the local selendroid server, i think it has something to do with react native.
any help please!
On the project I’m working on right now, we are using Calabash for both Android and iOS. testID works with Calabash like this:
If you have a view with testID some-id, then you can query for it in calabash with query string ”* marked: some-id”
https://github.com/calabash/calabash-ios
I have also heard people having success with Appium, which is quite similar I think.
You can add AccessbiltiyLabel so that you will be able to automate via
driver.findElement(by.accessibility("id");

Xamarin Google Tag Manager Integration

My goal is to integrate the GTM (Gootle Tag Manager) SDK in a Xamarin.iOS app without having to use Firebase.
Problem:
The instructions for integrating GTM from the Xamarin component store only show how to integrate via Firebase. Whereas Google provides 2 options, including one that does not require Firebase.
Additionally the GTM Xamarin component is missing types and methods provided by the original Google GTM SDK. Ex: TAGManager, TAGContainer
Any help would be greatly appreciated.
Not sure if you have figured this out. Hopefully this could help someone hoping to do the same. We currently use TagManager with Google Analytics in our Xamarin apps.
You need to install specific version of Google TagManager via Nuget and latest Google Analytics for your Xamarin.iOS app.
Packages currently used:
Xamarin.Google.iOS.Analytics - v 3.17.0.1
Xamarin.Google.iOS.TagManager - v 3.15.0.5
These packages should allow for the objects you are looking for TAGManager, TAGContainer to be found.
Follow this tutorial from a colleague of mine if you want Enhanced Ecommerce:
How To Implement Google Tag Manager Enhanced Ecommerce iOS in Xamarin

Cordova fb/google plugin wp8

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.

Resources