build Pulse in unity Android scripting backend il2cpp

Dear All,

I’m trying to build Pulse in the scripting backend “IL2CPP” unfortunately it doesn’t work as shown in the image.

Can you help me with that, thanks in advance :slight_smile:

Hi Omar,

Are you working with Android 64 or 32 bit?

Hi abray,

I am currently working on 32 bit.

What device is that?
Have you checked out the logs?

Dear Abray,

I checked the logs and everything is fine, the problem is that pulse works in Mono scripting backend, not in IL2CPP. I read the files associated with the extension and it turned out that there is an XML file I added but it does not work as in the picture.

my Unity version is 2020.3

The app is android

Is that screen shot from the editor from windows?

Have you seen this?

The screenshot is taken from the application and not from the windows.

and for the link that you mention it “IL2CPP Build Support”, the XML code I have done it before but still not working.

So can you give an example as unitypackage that Includes the XML file with the ability to export the android app via IL2CPP scripting backend? it will help me a lot especially in augmented reality applications.

Can you try putting this in the build.xml?

  <assembly fullname="System" preserve="all"/>
  <assembly fullname="Google.Protobuf" preserve="all"/>
  <assembly fullname="Pulse" preserve="all"/>
  <assembly fullname="Pulse.CDM" preserve="all"/>
  <assembly fullname="Pulse.cdm.bind" preserve="all"/>
  <assembly fullname="Pulse.engine.bind" preserve="all"/>

I should change the casing to be more consistent…
But I think this may keep all the proper pulse classes

I tried with the code but it didn’t work it still doesn’t give any pulse signals I don’t know what is the reason.

What I’m trying to do is display the heart rate monitor in augmented reality via Unity and that’s done on mobile phones Android devices as well as IOS.

Action steps: After making the augmented reality scene and activating ARcore > download your extension via Unity > create the “Assembly” file > create an XML file and put it in the pulses file of the scene > click on build settings > player settings > change scripting backend from Mono to il2cpp > uncheck script engine code > build and run > there is no indication of pulses as in the first picture.

Privacy Notice