playMaker

Author Topic: [SOLVED] Playmaker actions not working in android yet again  (Read 1904 times)

volcank

  • Playmaker Newbie
  • *
  • Posts: 37
[SOLVED] Playmaker actions not working in android yet again
« on: April 25, 2024, 05:19:12 AM »
Hi I saw a thread on this but still wanted to create new thread for this situation. My game works perfect in ios and I even published it here
https://apps.apple.com/tr/app/cool-cats-block-slide/id6480193201

But the thing is when I switched back to android and built it with android, the playmaker actions didn't work. This was a sourcecode that I purchased and changed the graphics and all and added my own actions into it. The game itself is coded no playmaker but I added the coin events and used playerpefs to save coins. Also added an extra button at top like it takes you to another scene where you can decorate your house etc but none of these work. Like The button even doesn't work that gets you to the deco page.

I am using Unity 2021.3.36f1 version and I also build my android targeting API 33 because it was giving gradle errors in highest and 34. Minimum API is Android 7.0 Marshmallow. No idea if that is the reason for pm not working. The only actions I use in the maing game are coin collect etc. and the button that takes you to another scene for deco. Using the latest version of Playmaker.

I would appreciate your help and advice.

Best

« Last Edit: April 29, 2024, 06:44:48 PM by Alex Chouls »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4003
  • Official Playmaker Support
    • LinkedIn
Re: Playmaker actions not working in android yet again
« Reply #1 on: April 25, 2024, 04:50:12 PM »
Are you using GetProperty/SetProperty/CallMethod actions?
Or any custom actions?

Try disabling stripping in the build to see if that is the issue:
https://docs.unity3d.com/Manual/ManagedCodeStripping.html

volcank

  • Playmaker Newbie
  • *
  • Posts: 37
Re: Playmaker actions not working in android yet again
« Reply #2 on: April 26, 2024, 09:19:28 AM »
Hi Alex,

I am mostly using Playerprefs to get Get Coin Variable and Set Coin variable and I am also using lots of Global variables. Other than that I use Control Freak plugin to control the topdown character in another scene for mobile also I have Camera 2D smooth follow from eco system. But I don't use it in my game. I will try disabling stripping in the build and see if it will work. Thank you so much!

volcank

  • Playmaker Newbie
  • *
  • Posts: 37
Re: Playmaker actions not working in android yet again
« Reply #3 on: April 28, 2024, 09:58:51 AM »
Hi Alex,

Thank you so much, the problem is solved. setting the stripping level to minimal made eveything work in my game.

Best Regards

Volkan

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4003
  • Official Playmaker Support
    • LinkedIn
Re: Playmaker actions not working in android yet again
« Reply #4 on: April 29, 2024, 06:44:34 PM »
Glad that helped! You could try building a link.xml file to force Unity to keep necessary types/methods and then turn the stripping back up if build size becomes an issue.