{"action":"opened","issue":{"url":"https://api.github.com/repos/NativeScript/NativeScript/issues/5377","repository_url":"https://api.github.com/repos/NativeScript/NativeScript","labels_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/5377/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/5377/comments","events_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/5377/events","html_url":"https://github.com/NativeScript/NativeScript/issues/5377","id":294140594,"number":5377,"title":"[Android] No IntentAction/Data on activityResumedEvent","user":{"login":"manijak","id":3605066,"avatar_url":"https://avatars0.githubusercontent.com/u/3605066?v=4","gravatar_id":"","url":"https://api.github.com/users/manijak","html_url":"https://github.com/manijak","followers_url":"https://api.github.com/users/manijak/followers","following_url":"https://api.github.com/users/manijak/following{/other_user}","gists_url":"https://api.github.com/users/manijak/gists{/gist_id}","starred_url":"https://api.github.com/users/manijak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manijak/subscriptions","organizations_url":"https://api.github.com/users/manijak/orgs","repos_url":"https://api.github.com/users/manijak/repos","events_url":"https://api.github.com/users/manijak/events{/privacy}","received_events_url":"https://api.github.com/users/manijak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-03T20:01:37Z","updated_at":"2018-02-03T20:01:37Z","closed_at":null,"author_association":"NONE","body":"Trying to get the DeepLinks or DynamicLinks to work on Android. \r\nNot sure if this is an issue or just my configuration & usage. But I have noticed that the issue is the same on a pair of plugins trying to do the same (firebase plugin and url-handler).\r\n\r\n### Tell us about the problem\r\nWhen listening to the `activityResumedEvent` on Android, the `getAction()` & `getData()` return null. Even tho the ActivityManager logs the new intent with all the data. \r\n\r\nThis is my intent config:\r\n```xml\r\n<intent-filter>\r\n     <action android:name=\"android.intent.action.VIEW\" />\r\n     <category android:name=\"android.intent.category.DEFAULT\" />\r\n     <category android:name=\"android.intent.category.BROWSABLE\" />\r\n     <data android:host=\"myurl\"/>\r\n     <data android:scheme=\"https\"/>\r\n     <data android:scheme=\"http\"/>\r\n</intent-filter>\r\n```\r\nAlso added this to my main activity `android:launchMode=\"singleTask\"`\r\n\r\nCode in app.ts:\r\n```typescript\r\napplication.android.on(application.AndroidApplication.activityResumedEvent, (args: application.AndroidActivityEventData) => {\r\n   var intentData = args.activity.getIntent().getData();\r\n   console.log(\"------>>>>>> IntentAction: \" +  args.activity.getIntent().getAction());\r\n   console.log(\"------>>>>>> IntentData: \" +  intentData);\r\n});\r\n```\r\n\r\nSo when trying to open a dynamicLink from another app, the app opens, but the intent data is null, so we cannot fetch the url and parse it. \r\n\r\n```\r\nActivityManager: START u0 {act=android.intent.action.VIEW dat=https://XXXXX.app.goo.gl/... flg=0x3000000 cmp=com.myapp/com.tns.NativeScriptActivity (has extras)} from uid 10070\r\nJS: ------>>>>>> IntentAction: null\r\nJS: ------>>>>>> IntentData: null\r\n```\r\n\r\n### Which platform(s) does your issue occur on?\r\nAndroid\r\n\r\n### Please provide the following version numbers that your issue occurs with:\r\n- CLI: 3.4.1\r\n- Cross-platform modules: 3.4.0\r\n- Runtime(s): 3.4.1"}}
{"actor":{"display_login":"manijak"}}