{"action":"created","issue":{"url":"https://api.github.com/repos/reignstudios/Reign-Unity-Plugin/issues/3","repository_url":"https://api.github.com/repos/reignstudios/Reign-Unity-Plugin","labels_url":"https://api.github.com/repos/reignstudios/Reign-Unity-Plugin/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/reignstudios/Reign-Unity-Plugin/issues/3/comments","events_url":"https://api.github.com/repos/reignstudios/Reign-Unity-Plugin/issues/3/events","html_url":"https://github.com/reignstudios/Reign-Unity-Plugin/issues/3","id":235024681,"number":3,"title":"Crashing when receiving intent","user":{"login":"GuyCorbett","id":4958504,"avatar_url":"https://avatars1.githubusercontent.com/u/4958504?v=3","gravatar_id":"","url":"https://api.github.com/users/GuyCorbett","html_url":"https://github.com/GuyCorbett","followers_url":"https://api.github.com/users/GuyCorbett/followers","following_url":"https://api.github.com/users/GuyCorbett/following{/other_user}","gists_url":"https://api.github.com/users/GuyCorbett/gists{/gist_id}","starred_url":"https://api.github.com/users/GuyCorbett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GuyCorbett/subscriptions","organizations_url":"https://api.github.com/users/GuyCorbett/orgs","repos_url":"https://api.github.com/users/GuyCorbett/repos","events_url":"https://api.github.com/users/GuyCorbett/events{/privacy}","received_events_url":"https://api.github.com/users/GuyCorbett/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-06-10T20:19:24Z","updated_at":"2017-06-15T20:48:21Z","closed_at":null,"body":"Thanks for this plugin, I recently downloaded the Android version from the Unity Asset store and it's been really useful!  However, I am encountering an issue. \r\n\r\nI set up my app so that on Android it would automatically be used to open a custom file type I created when the user selects any such file from a browser app etc.  This worked all fine before I integrated this plugin into the project.  However, now that I have the plugin, it works only if the app isn't already running when I try to open a file. If it is running my app immediately crashes, even if I remove all code which processes the file. \r\n\r\nIn order to do this I added some intent filters into my AndroidManifest.  Before I downloaded this plugin I had the intent filters inside the UnityPlayerActivity.  This plugin replaces that with the ReignUnityActivity which is where I added them instead.  \r\n\r\nIs there anything you can suggest?"},"comment":{"url":"https://api.github.com/repos/reignstudios/Reign-Unity-Plugin/issues/comments/308861526","html_url":"https://github.com/reignstudios/Reign-Unity-Plugin/issues/3#issuecomment-308861526","issue_url":"https://api.github.com/repos/reignstudios/Reign-Unity-Plugin/issues/3","id":308861526,"user":{"login":"GuyCorbett","id":4958504,"avatar_url":"https://avatars1.githubusercontent.com/u/4958504?v=3","gravatar_id":"","url":"https://api.github.com/users/GuyCorbett","html_url":"https://github.com/GuyCorbett","followers_url":"https://api.github.com/users/GuyCorbett/followers","following_url":"https://api.github.com/users/GuyCorbett/following{/other_user}","gists_url":"https://api.github.com/users/GuyCorbett/gists{/gist_id}","starred_url":"https://api.github.com/users/GuyCorbett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GuyCorbett/subscriptions","organizations_url":"https://api.github.com/users/GuyCorbett/orgs","repos_url":"https://api.github.com/users/GuyCorbett/repos","events_url":"https://api.github.com/users/GuyCorbett/events{/privacy}","received_events_url":"https://api.github.com/users/GuyCorbett/received_events","type":"User","site_admin":false},"created_at":"2017-06-15T20:48:21Z","updated_at":"2017-06-15T20:48:21Z","body":"Hey,\r\n\r\nThanks for the reply and sorry for the delay.  I think I may have explained poorly.  I am not sending an intent from my application so onActivityResult should never be called.  What's happening is that I open my app, I minimise it by pressing the android home button, I open a file browser app, attempt to open one of my custom files, Android correctly switches back to my app but it immediately crashes. \r\n\r\nIn this case I think it would be onNewIntent that gets called, not onActivityResult, however I have not got as far as implementing that so it should just effectively ignore the intent.  Is it possible that some of your plugin code implements onNewIntent and that is crashing because it's trying to read my file?\r\n\r\nIncidentally, to try to fix this I removed the plugin from my app and downloaded the Unity 5 targeted version from Git instead.  However I can't get this working at all because I can't generate the Android manifest. Your online docs explain how to do it but they refer to a menu option which doesn't seem to exist; Edit->Reign->Tools->Merge Reign Android Manifest.  "}}
{"actor":{"display_login":"GuyCorbett"}}