question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

IOS Volume is always 0

See original GitHub issue

Hello there, I’m working on an app and cannot get the package to work RN version is 62.2

I added and linked the library correctly, but whenever I call the function

SystemSettings.getVolume('system').then(data => console.log(data) I get the same amount all the time, even when I changed the volume on the simulator.

Anyone had the same issue ?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

1reaction
Karniejcommented, May 8, 2020

Okay I found out that it doesn’t work on Simulator - only on Physical device - please add it to the docummentation. If you don’t have time - i’ll make a PR 😃

0reactions
DrakosPZcommented, Oct 25, 2022

I have a similar problem and to me it seems like the entire library isn’t working for me.

I tested it on a device and installed the library normally with npm i

My Code is as followed ` componentDidMount(): void { this.interval = setInterval(this.checkVolume, 500); }

checkVolume() {
	SystemSetting.getVolume('music').then((checkedVolume)=>{
		this.setState({musicVolume: checkedVolume});
	});
	SystemSetting.getVolume('system').then((checkedVolume)=>{
		this.setState({systemVolume: checkedVolume});
	});
	SystemSetting.getVolume('call').then((checkedVolume)=>{
		this.setState({callVolume: checkedVolume});
	});
	SystemSetting.getVolume('alarm').then((checkedVolume)=>{
		this.setState({alarmVolume: checkedVolume});
	});
	SystemSetting.getVolume('notification').then((checkedVolume)=>{
		this.setState({notificationVolume: checkedVolume});
	});
	SystemSetting.getVolume('ring').then((checkedVolume)=>{
		this.setState({ringVolume: checkedVolume});
	});
}

`

No matter how much I change the volume on my device, it always stays 0?

Read more comments on GitHub >

github_iconTop Results From Across the Web

The iPhone ringer volume lowers to zero b… - Apple Community
When I go to “Settings > Sound & Haptics” I simply find the volume in “Ringer and Alerts” set to zero. The funny...
Read more >
How To Fix Low Volume on iPhone (2022) - YouTube
For more information, follow this guide:https://www.techy.how/tutorials/iphone-low- volume -fixA short tutorial on how to fix the issue when ...
Read more >
iPhone Volume Keeps Changing By Itself, Fix - macReports
This article explains how you can troubleshoot when your iPhone volume (audio, ringer, alerts and other sounds effects etc) keeps adjusting itself.
Read more >
3 Ways to Fix iPhone Volume Automatically Goes Down
Fix iPhone Volume Changes By Itself · 1. Restart your iPhone · 2. Disable Change with Buttons · 3. Disable Attention Aware Features....
Read more >
ios - Objective C - How can I detect that the volume is 0? (both ...
EDIT: Ok so reading about it it seems there's no API avaiable to check silent mode. Anyway what people have found a workaround:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found