Skip to content

Fix iOS example #953

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions examples/ios-feedback/ios-src/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,14 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
withOptions:AVAudioSessionCategoryOptionDefaultToSpeaker | AVAudioSessionCategoryOptionAllowBluetooth
error:&error];

if (success) {
NSError *activateError;
[session setActive:YES error:&activateError];

if (success && activateError == nil) {
NSLog(@"Calling rust_ios_main()");
rust_ios_main();
} else {
NSLog(@"Failed to configure audio session category");
NSLog(@"Failed to configure audio session category or active audio session");
}

return YES;
Expand Down
Loading