Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Receive deeplinkg in Android with Firemonkey?


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 1 - Last Post: Aug 13, 2017 1:23 PM Last Post By: Dave Nottage
László Mlnvszky

Posts: 106
Registered: 10/21/09
Receive deeplinkg in Android with Firemonkey?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 13, 2017 6:08 AM
Does anyone know how to implement deeplinking in Android?
I assume we would need to catch OpenUrlString or something like that to do navigate to the proper content in the APP.

Did anyone implement it, yet?
Dave Nottage

Posts: 1,850
Registered: 1/7/00
Re: Receive deeplinkg in Android with Firemonkey?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 13, 2017 1:23 PM   in response to: László Mlnvszky in response to: László Mlnvszky
László Mlnvszky wrote:

Does anyone know how to implement deeplinking in Android?
I assume we would need to catch OpenUrlString or something like that to do navigate to the proper content in the APP.

Did anyone implement it, yet?

Given the content, here:

https://developer.android.com/training/app-links/deep-linking.html

It looks like you would supply the relevant parts in the manifest, and call getIntent on the activity at startup to
determine what the link was. The code might look like this:

var
  LUri: Jnet_Uri;
begin
  LUri := TAndroidHelper.Activity.getIntent.getData;
  // then examine the scheme and host properties of the URI as per the details in the manifest, and take appropriate
action
end;


As the doc says, best practice is to take the user directly to what the deep link specifies. That would mean handling
the intent before any form is shown.

--
Dave Nottage [MVP, TeamB]
Find hints, tips and tricks at Delphi Worlds blog: http://www.delphiworlds.com
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02