Uh oh!
There was an error while loading. Please reload this page.
Add deep linking support to IntentAndroid - #4320
Conversation
facebook-github-bot
commented
Nov 24, 2015
There was a problem hiding this comment.
There's no mActivity here! O.o
There was a problem hiding this comment.
Just change all (activity's) Context to Activity class
mkonicek
commented
Nov 25, 2015
Nice! Thanks for working on this! |
satya164
commented
Nov 26, 2015
@mkonicek Thanks. Waiting for the Dialog commit before I change anything here :D |
facebook-github-bot
commented
Dec 3, 2015
@satya164 updated the pull request. |
2 similar comments
facebook-github-bot
commented
Dec 3, 2015
@satya164 updated the pull request. |
facebook-github-bot
commented
Dec 3, 2015
@satya164 updated the pull request. |
facebook-github-bot
commented
Dec 3, 2015
@satya164 updated the pull request. |
facebook-github-bot
commented
Dec 4, 2015
@satya164 updated the pull request. |
1 similar comment
facebook-github-bot
commented
Dec 4, 2015
@satya164 updated the pull request. |
satya164
commented
Dec 4, 2015
@mkonicek I've updated the PR using However, the current activity is only set on I'm not sure if it's the best approach though. Please have a look and lemme know. cc @foghina |
mkonicek
commented
Dec 9, 2015
Just pinged @foghina, thanks for the patience. Many PRs in the queue and branch cut.. |
There was a problem hiding this comment.
This seems reasonable - the process could be started by an intent.
foghina
commented
Dec 10, 2015
I don't like exposing Since the JS API is only similar but not identical and since the JS API is a function call anyway ( Exposing constants has bitten us in the past (see screen size), they should only be used for things that are really constant. |
satya164
commented
Dec 10, 2015
facebook-github-bot
commented
Dec 13, 2015
@satya164 updated the pull request. |
facebook-github-bot
commented
Dec 13, 2015
@satya164 updated the pull request. |
facebook-github-bot
commented
Dec 13, 2015
@satya164 updated the pull request. |
1 similar comment
facebook-github-bot
commented
Dec 13, 2015
@satya164 updated the pull request. |
facebook-github-bot
commented
Dec 13, 2015
@satya164 updated the pull request. |
satya164
commented
Dec 13, 2015
facebook-github-bot
commented
Dec 15, 2015
@satya164 updated the pull request. |
There was a problem hiding this comment.
Can you add an error callback (all @ReactMethods have two callbacks) and call it here instead of throwing an exception? You should probably still log the full exception details, though, to make it easier to debug problems.
There was a problem hiding this comment.
@foghina Was wondering the same thing. I kept it consistent with the canOpenURL method which is in the same file. It's really confusing.
There was a problem hiding this comment.
Oh, darn. Then we can probably leave it as it is for the purposes of this PR but we should refactor this module.
There was a problem hiding this comment.
@foghina Yes, we should. I'll send another PR with the changes then, after this is merged.
foghina
commented
Dec 15, 2015
@facebook-github-bot shipit |
facebook-github-bot
commented
Dec 15, 2015
Thanks for importing. If you are an FB employee go to https://our.intern.facebook.com/intern/opensource/github/pull_request/1658069957805935/int_phab to review. |
foghina
commented
Dec 15, 2015
@satya164 heads-up: patch failed internally because we don't mirror |
satya164
commented
Dec 15, 2015
@foghina No probs. I'll send another PR with the website changes :) |
Add a method to handle URLs registered to the app,
Refer - http://developer.android.com/training/app-indexing/deep-linking.html#adding-filters
The API cannot be same as the iOS API (i.e. as a constant), as the activity is not availble at the time of module initialization. Moreover, multiple activties can share the same bridge instance, and the activity itself is not a constant. Hence the initialURL can change.