deep-linking

How to write tests for deep links in Android?

拜拜、爱过 提交于 2019-11-29 14:08:02
问题 I would like to write tests for Android app with deep link cases using UI testing framework (Espresso) - launch app using only ACTION_VIEW intent and check all views on opened screen. But looks like Espresso (even espresso-intents) doesn't have this functionality, and require to define Activity class. I tried this way, but it doesn't work properly, because launched app twice - standard launch using AppLauncherActivity (required by Espresso) and launch via deep link. @RunWith(AndroidJUnit4

Automating deep linking using android espresso

血红的双手。 提交于 2019-11-29 11:29:54
I want to write espresso scripts to test deep linking and have no idea how to begin with. Looking for solutions that'll help me get more idea, possibly step by step procedure on how to get started. For ex : I am looking for a scenario like you get a link in gmail tapping on which user should be directed towards the mobile app. How do I get started to test something like this using espresso ? Thanks in advance. Start with an activity rule @Rule public ActivityTestRule<YourAppMainActivity> mActivityRule = new ActivityTestRule<>(YourAppMainActivity.class, true, false); Then you want something to

Facebook deep linking with iOS app

好久不见. 提交于 2019-11-29 11:06:34
I am using below code to post to Facebook. It is working perfectly but when i replace MY_URL with myapp://test_page// the post won't appear in Facebook timeline. If i'm doing something wrong then please tell me how can i deep-link my app to Facebook app. I've searched almost all stackoverflow.com pages & other Facebook developer tutorials but i can not understand that. NSMutableDictionary *params = [NSMutableDictionary dictionaryWithCapacity:0]; [params setObject:@"Check out my post in myapp" forKey:@"message"]; [params setObject:MY_URL forKey:@"link"]; [params setObject:MY_IMAGE_URL forKey:@

How to access and pass parameters to the modules of an Android Instant App

好久不见. 提交于 2019-11-29 06:34:10
With normal installed apps it's possible to use the technique of Deep Linking in order to not only open a specific application from an URL but also to redirect it to a specific section/function such as a specific Facebook post or specific coordinates on a map. Since I've read that with Instant Apps this won't be possible because links already point to the specific module to download and run, how would it be possible to access not only the said module but also pass it some parameters? For example: This is the link from which the view-only module of my map application will be downloaded: " www

CUDA: allocation of an array of structs inside a struct

筅森魡賤 提交于 2019-11-29 05:08:25
I've these structs: typedef struct neuron { float* weights; int n_weights; }Neuron; typedef struct neurallayer { Neuron *neurons; int n_neurons; int act_function; }NLayer; "NLayer" struct can contain an arbitrary number of "Neuron" I've tried to allocate a 'NLayer' struct with 5 'Neurons' from the host in this way: NLayer* nL; int i; int tmp=9; cudaMalloc((void**)&nL,sizeof(NLayer)); cudaMalloc((void**)&nL->neurons,6*sizeof(Neuron)); for(i=0;i<5;i++) cudaMemcpy(&nL->neurons[i].n_weights,&tmp,sizeof(int),cudaMemcpyHostToDevice); ...then I've tried to modify the "nL->neurons[0].n_weights"

Exclude few Urls from deeplinking

依然范特西╮ 提交于 2019-11-29 01:56:23
I could successfully implement deeplinking of app using following filter in the intent-filter in my Manifest: <data android:host="myhost.com" android:pathPrefix="/v" android:scheme="http" /> Eg. My Urls are: http://myhost.com/v/login1.php?id=123&name=abc&type=a http://myhost.com/v/login1.php?id=123&name=abc&type=b I want to exclude http://myhost.com/v/login1.php?id=123&name=abc&type=c Now I want to exclude a few Urls which have same prefix. Is it possible or Do I need to explicitly specify all urls with android:path ? If so, how to deal with values of query parameters? Unfortunately we can't

Link to Safari “Add to Home Screen” from inside app?

南笙酒味 提交于 2019-11-28 22:01:26
My app has a custom URL scheme and can use deep linking to jump straight from a URL to some content. I'd love to replicate the behaviour in the recent Facebook Groups app, which allows the user to hit an "Add to Home Screen" button in the app, which takes them out to a custom-designed localhost page in Safari, allowing them to tap Safari's Share and Add to Home Screen buttons, which will then add an icon to their home screen which, when tapped, takes them into the Groups app, and to the specific group in question. My problem is that if I send my custom URL scheme deep link to Safari, before

How to open ios app using url?

回眸只為那壹抹淺笑 提交于 2019-11-28 21:12:01
问题 I want to open my ios app using URL schemes. I am able to open app using this. But I want if app is not installed then app store should be opened where user can download app. Is this possible? How can I do that? EDIT Explaining question step wise: I have a mail in my inbox with a url. I click on URL then i. If app is installed in phone, app will launch. ii. Otherwise app store will be opened to download app. Thank 回答1: I handled it via my server side code: if ((navigator.userAgent.match(

Android Deep Linking issue ! How to use Custom Url scheme myapp://some_data

≡放荡痞女 提交于 2019-11-28 19:15:54
i have tried link1 , link2 , link3 , link4 , link5 , link6 Here's everything described about DeepLinking What i want is the custom uri myapp://some_data, opens the native application installed in the device that requires some_data to initialise the application. There are 2 scenarios in which the custom url can be clicked. 1) from within the SMS app, when user taps the link it should automatically open the installed otherwise open the googleplay store where the app is hosted 2) from within the body of a email message. I have tried all the above listed links, but none of them works for me. I m

Deep linking and multiple app instances

六月ゝ 毕业季﹏ 提交于 2019-11-28 17:25:45
I have implemented deep linking in my app. I added this intent filter in my manifest file, and the deep linking is working. <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <category android:name="android.intent.category.VIEW" /> <data android:host="www.mywebsite.com" android:pathPrefix="/something" android:scheme="http" /> </intent-filter> The problem is that through deep linking, my app is launching on top of current app. If I am in Gmail and I click a