Reign-Unity-Plugin5 icon indicating copy to clipboard operation
Reign-Unity-Plugin5 copied to clipboard

Crashing when receiving intent.

Open GuyCorbett opened this issue 8 years ago • 2 comments

Sorry I posted this issue to the pre-unity 5 project before I saw this so I'm posting here too.

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.

I 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.

In 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.

Is there anything you can suggest?

GuyCorbett avatar Jun 10 '17 20:06 GuyCorbett

What feature are you trying to use? Unity now supports Ads and IAP out of the box.

reignstudios avatar Jul 14 '17 18:07 reignstudios

I'm trying to allow the user to pick images from the android gallery or take a picture with the camera. Using your plugin, I have got both of these things working - the issue is that it has introduced this new problem where my app crashes when I : open my app, switch to a file browser, open one of my custom files.

GuyCorbett avatar Jul 15 '17 19:07 GuyCorbett