For the life of me I can’t get my android package to vibrate/use force feedback.
Play Dynamic Force Feedback / Client Play Force Feedback / Vibrate, none of these have any effect when played on an Android device (but they do work running in my project on PC (through the controller).
Do I need the VIBRATE permission for these to work? Or is something else amiss?
Regarding the VIBRATE permission, I can’t for the life of me get it to activate.
I’ve created an androidperms.xml in my project’s source forlder containing
?xml version=“1.0” encoding=“utf-8”?
root xmlns:android=“http://schemas.android.com/apk/res/android”
androidManifestUpdates
addPermission android:name=“android.permission.VIBRATE” /
removePermission android:name=“android.permission.WRITE_EXTERNAL_STORAGE” /
addPermission
android:name=“android.permission.WRITE_EXTERNAL_STORAGE”
android:maxSdkVersion=“18” //androidManifestUpdates
/root
(all greater/lesser than signs deleted to be able to block quote it here)
which I reference in my build.cs with
if(Target.Platform == UnrealTargetPlatform.Android) { string manifest_file = Path.Combine(ModuleDirectory, "androidperms.xml"); AdditionalPropertiesForReceipt.Add("AndroidPlugin", manifest_file); string PluginPath = Utils.MakePathRelativeTo(ModuleDirectory, Target.RelativeEnginePath); AdditionalPropertiesForReceipt.Add("AndroidPlugin", System.IO.Path.Combine(PluginPath, "AddRoundIcon_UPL.xml"));
}
but the apk always shows “no permissions allowed” with only “Notifications” listed under “not allowed”. And I don’t even mention notifications anywhere.
What am I doing wrong? I’ve been stuck on this for weeks, help!! (_ _!)
EDIT: omg omg I am an idiot. Ignore this post. Tocuh Feedback was switched off on my phone. Holy moley I need to turn in my developer card because I do not deserve it.