Log in or register to post comments

Unity3d Android plugin With Vuforia and FB Unity Plugin is creating a problem

July 5, 2013 - 7:56am #11

Hi

 

I am using a neatplug plugin for Facebook which adds this to manidfest file

<activity android:name="com.neatplug.u3d.plugins.common.NPUnityPlayerActivity" android:label="@string/app_name" android:configChanges="keyboard|keyboardHidden|orientation|screenSize" android:launchMode="singleTask">
      <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
      </intent-filter>
    </activity>
 
That means that  the plugin and vuforia both needs to be the main launcher. Its a Fb plugin. Is there is a solution to this problem?

 

Unity3d Android plugin With Vuforia and FB Unity Plugin is creat

July 6, 2013 - 12:32am #10

Hi, never tried that plugin;

have you tried putting both activities in the same android manifest and remove the "Launcher" category from one of them ?

 

Unity3d Android plugin With Vuforia and FB Unity Plugin is creat

July 6, 2013 - 3:40am #9

Ya. Tried that. Both of them needs to be the launcher. Is there any way i can remove Vuforia as the launcher?

Unity3d Android plugin With Vuforia and FB Unity Plugin is creat

July 8, 2013 - 12:33am #8

Not that I'm aware of... is there any chance that you can make the NP plugin not as a launcher ?

 

Unity3d Android plugin With Vuforia and FB Unity Plugin is creat

July 8, 2013 - 12:38am #7

Not really. Its integrating Facebook SDK. SO i guess its required. Anything i can do with Vuforia? 

Unity3d Android plugin With Vuforia and FB Unity Plugin is creat

July 8, 2013 - 4:29am #6

Hi again,

here is one thing you may want to try:

- export your Unity project to an Android project (which you can then work on from Eclipse, like a regular Java Android project), as explained in this short tutorial:

https://developer.vuforia.com/resources/dev-guide/extending-unity-android-activity-and-adding-custom-views-eclipse

Then you can extend the QCARPlayerActivity, pretty much as shown in the tutorial from there, you basically have access to all the activity life cycle methods of the main activity, and you can insert custom code in it. 

In practice, you could insert the necessary code for the Facebook plugin into the main QCAR activity, so to have a single Main (launcher) activity which handles both Vuforia and Facebook.

I shared this with our engineering team as well, and this seems to be the only possible solution... so I hope this can work for you.

 

 

 

 

Unity3d Android plugin With Vuforia and FB Unity Plugin is creat

September 30, 2013 - 9:27am #5

Hey AlessandroB,

I'm having issues with Vuforia and Prime31 facebook plugin (which uses Facebook SDK plugin). I'm actually thinking that your approach is the only one left for me to make this work. Did you manage to make thinks work that way? Do you have an example using the facebook SDK and Vuforia merged into a single activity class? 

If so, you could save my life :)

Thanks a lot,

Antho

Unity3d Android plugin With Vuforia and FB Unity Plugin is creat

October 2, 2013 - 1:09am #4

I had tried the solution from your link, but I having hard time to make it work. Could you provide some example for us to refer? And how can we re-import the ".jar"(or other files needed) back into unity and build?

Unity3d Android plugin With Vuforia and FB Unity Plugin is creat

October 2, 2013 - 1:17am #3

Prime sense will not work. You need to use a different plugin.

Unity3d Android plugin With Vuforia and FB Unity Plugin is creat

October 2, 2013 - 1:32am #2

May I know what plugin you are using?  

Unity3d Android plugin With Vuforia and FB Unity Plugin is creat

October 2, 2013 - 1:34am #1

Neatplug. Ask him for a special version.

Log in or register to post comments