Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Name Does Not Persist #50

Open
keithws opened this issue Nov 2, 2015 · 2 comments
Open

Custom Name Does Not Persist #50

keithws opened this issue Nov 2, 2015 · 2 comments

Comments

@keithws
Copy link

keithws commented Nov 2, 2015

I just downloaded, built, and installed AirFloat on an old iPhone 4 running iOS 7. It works! However, when I give it a custom name in the Settings panel, that name does not persist. Any one else having this issue?

@Starbix
Copy link

Starbix commented Nov 3, 2015

Yep, exactly the same issue

@yfliao
Copy link

yfliao commented Dec 4, 2015

The following code may do the job (at least for me, iPad1/iOS 5.1.1).

"AirFloat/AirFloatAppDelegate.m"

//#if TARGET_IPHONE_SIMULATOR
// NSString* path = [[NSString stringWithFormat:@"/Users/%@/Library/Preferences/", NSUserName()] stringByAppendingPathComponent:filename];
//#else
// NSString* path = [@"/var/mobile/Library/Preferences/" stringByAppendingPathComponent:filename];
//#endif

NSArray *mypaths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [mypaths objectAtIndex:0];
NSString *newpath = [documentsDirectory stringByAppendingPathComponent:filename];

return newpath;

JBA474 added a commit to JBA474/AirFloat that referenced this issue Feb 29, 2016
…ustom Name Does Not Persist

Changed AVAudioSession to work around crash when switching songs.
Added hack for return iOSDeviceID to allow multiple instances on Airflow on the same network and work around MAC address now longer available in app sandbox.
Fixed a couple other memory management bugs in settings.c, web request.c and webserver.c, including removing redundant socket_destroy.
Changed target name for libairfloat from airfloat to libairfloat.
Remove debug flags.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants