playMaker

Author Topic: Android FAQ  (Read 28588 times)

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4004
  • Official Playmaker Support
    • LinkedIn
Android FAQ
« on: August 24, 2013, 11:27:44 AM »
Unity does not remove unused scripts when making a build. This means unused actions will be in the build. We're working on our own tool to automatically remove unused actions, but in the meantime, here are some tips:
  • If you don't use Unity Networking you can safely delete the PlayMaker/Actions/Networking folder.
  • If you don't want your app to ask for GPS permissions, remove the location actions: GetLocationInfo, StartLocationServicesUpdate, StopLocationServicesUpdate.
  • If you don't want your app to ask for vibration permissions, remove the Vibrate action.
« Last Edit: August 24, 2013, 12:26:57 PM by Alex Chouls »

sandfella

  • Playmaker Newbie
  • *
  • Posts: 1
Re: Android FAQ
« Reply #1 on: November 23, 2015, 03:12:00 PM »
Old thread, but I was googling for WAKE_LOCK issue and got to this page multiple time. I think I found a solution so I registered to these forums just to post this info :)

These two are related:
permission: Android.permission.WAKE_LOCK
try delete file: /PlayMaker/Actions/DevicePlayFullScreenMovie.Cs

(using Unity 5.0.4 and Playmaker 1.7.8)

edit: also sorry if it's against the rules to post to pinned threads or something. I'm such a newb  ;D

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15537
  • Official Playmaker Support
Re: Android FAQ
« Reply #2 on: April 15, 2016, 02:00:35 AM »
Hi,

 that's great, thanks for sharing this, it's indeed important.

Bye,

 Jean

Dan

  • Junior Playmaker
  • **
  • Posts: 52
    • Personal Site
Re: Android FAQ
« Reply #3 on: August 01, 2016, 11:02:12 PM »
I made a note of the tips, however, I noticed that in 2013 you were working on a tool to remove unused scripts. Has this tool been developed? If that exists then I won't try to do this manually for my builds. Thanks.

joel.carlson

  • Junior Playmaker
  • **
  • Posts: 66
    • Salvation's Story
Re: Android FAQ
« Reply #4 on: August 14, 2016, 07:11:36 PM »
Any progress on creating a tool to remove unused scripts?
Check out Noah's Elephant in the Room, Bible ABCs for Kids, Bible Coloring for Kids, and Noah's Bunny Problem at
Salvations Story

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15537
  • Official Playmaker Support
Re: Android FAQ
« Reply #5 on: August 17, 2016, 06:56:38 AM »
Hi,

 I am not aware of any progress on this right now. Currently, you'll need to do this manually unfortunatly.

 Bye,

 Jean

Dan

  • Junior Playmaker
  • **
  • Posts: 52
    • Personal Site
Re: Android FAQ
« Reply #6 on: August 17, 2016, 08:02:17 PM »
Got it, thanks.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7623
    • jinxtergames
Re: Android FAQ
« Reply #7 on: March 02, 2017, 03:50:17 AM »
Hi,
Any update for a tool?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15537
  • Official Playmaker Support
Re: Android FAQ
« Reply #8 on: March 06, 2017, 01:00:23 AM »
Hi,

 Not really unfortunatly...

 Bye,

 Jean

qaz1243qaz

  • Playmaker Newbie
  • *
  • Posts: 1
Re: Android FAQ
« Reply #9 on: March 20, 2017, 03:12:09 AM »
unity 4 playmaker1.7.7f6

add playmaker plugin
use Android
Could not find method android.net.ConnectivityManager.getRestrictBackgroundStatus and android.os.LocaleList.getDefault
BUG....
« Last Edit: March 20, 2017, 03:13:48 AM by qaz1243qaz »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15537
  • Official Playmaker Support
Re: Android FAQ
« Reply #10 on: March 20, 2017, 05:12:53 AM »
Hi,

 Unity 4 is likely deprecated with Android. Have you tried with the latest Unity version and lasted PlayMaker version?

 Bye,

 Jean

E.P.DunkTrunk

  • Playmaker Newbie
  • *
  • Posts: 1
Re: Android FAQ
« Reply #11 on: May 07, 2023, 11:04:22 PM »
Hi, any update on this tool?
A helpful alternative would be an option perhaps in Playmaker/Tools:
"Delete All Location Actions", "Delete All Networking Actions" etc.
Specifically for groups of actions that cause permission issues / requests on iOS and Android.