Questions tagged [iphone-vibrate]

Refers to the vibration of the iPhone.

Refers to the vibration process of the iPhone, and the methods and options which are available to control it, as well as the events that trigger the vibration itself.

52 questions
2
votes
1 answer

Disable Vibration iphone

Is there a way to disable the vibration of iPhone programmatically? All I could find is how to enable the vibration. Basically I want to toggle the Vibration Mode through UISwitch. Can anybody help me out if there's a way to do that?
Rahul Singh
  • 1,219
  • 3
  • 13
  • 36
2
votes
3 answers

how to set iPhone vibrate length?

I'm using AudioServicesPlaySystemSound to call vibrate function: AudioServicesPlaySystemSound(kSystemSoundID_Vibrate); is there any way to set the duration of the vibrate? i know that the default duration is 0.4 seconds but i want sometimes to make…
yoni jacobi
  • 115
  • 1
  • 8
1
vote
1 answer

UILocalNotification - Need to vibrate for a longer duration during the alert / notification

Overview In my iOS project, I am using UILocalNotification, when a notification is fired, a custom sound is played. the custom sound plays for about 20 seconds, the phone vibrates only once at the start What I want to do: Presently the phone…
user1046037
  • 16,755
  • 12
  • 92
  • 138
1
vote
2 answers

Why my iPhone not Vibrate?

I've try to use a Vibration when a cell from my UITableView is selected. In my didselectedRowAtIndexPath i've put this code: #pragma mark - DidselectRow - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath…
1
vote
3 answers

SwiftUI: How to make phone vibrate?

So I understand how to make the phone give haptic feedback through this tutorial. https://swifttom.com/2020/03/11/haptic-feedback-in-a-swiftui-button/ However, what I'm trying to figure out is how to make the iPhone actually vibrate, as in the…
swiftNewb
  • 27
  • 5
1
vote
0 answers

How to vibrate iphone by pattern when push received?

I want to vibrate device when i received the push notification. push notification contains value of vibration like below: { 0, 1000, 2000, 3000, 2000 } How can i vibrate iPhone using above pattern in objective-c ? Thanks.
1
vote
0 answers

Adding vibration functionality for local notification in case App has been in background

refer below links in case helpful. Add vibration the background for local notifications Unable to Handle Local Notification when app has been terminated
Geet
  • 11
  • 1
1
vote
0 answers

HeartBeat Vibration

I want to vibrate device like heart-beat same as provided by system in Settings->Sound & Haptics->Ring Tone->Vibration->Heatbeat. I have tried this but it only vibrate once. Also tried it in loop as well as after some delay but not solve my…
1
vote
3 answers

how to increase the vibration time in iPhone

I am using following method to vibrate the device AudioServicesPlaySystemSound (kSystemSoundID_Vibrate); But this vibrate for a very shor period of time can we increase this period ?
Kumar sonu
  • 535
  • 11
  • 24
1
vote
1 answer

Detecting Vibration on a Table with the iPhone

is it possible to detect vibration on the iPhone? I'm trying to figure out how to detect when the user smacks a desk or table when the phone is sitting on it. I remember reading somewhere you could detect a smack on a wooden table using the mic and…
Frankrockz
  • 594
  • 1
  • 6
  • 24
1
vote
1 answer

Cordova does not vibrate as expected on iOS

In my Ionic 3.20 + cordova ios 4.5.4 app with cordova-plugin-vibration 3.0.1 and compiled against XCode 9.4.1, @ionic-native/vibration behaves this way on iPhone 7: vibrates with a default duration if a single duration value is given; e.g.…
myoan
  • 401
  • 5
  • 14
1
vote
1 answer

How do I add label values to wait commands?

I am making an app that vibrates with customizable breaks in between. I have a slider that is numbered 0-50. And it rounds it to the closest integer then displays it in my label. I am now trying to execute the command: @IBOutlet weak var amount:…
1
vote
0 answers

How to vibrate iPhone when the app is in the background

This code vibrates iPhone AudioToolbox.SystemSound.Vibrate.PlaySystemSound(); How can I vibrate iPhone when my app is in the background ?
Bengi Besçeli
  • 3,638
  • 12
  • 53
  • 87
1
vote
2 answers

Can I make an iPhone vibrate when in silent mode?

Can I program my iOS app to vibrate an iPhone when the phone's "Vibrate on Silent" and "Vibrate on Ring" settings are turned off?
1
vote
1 answer

How to perform different Device Behaviour [ sound or vibrate] on some action occur in iOS8+?

I want to perform different device behaviour like sound,vibrate on some action occur. exa. Once notification (Interactive notification) is arrive in the app and device will start vibrating or some different device behaviour will occur.I am using…
iDeveloper
  • 607
  • 5
  • 25