Hi all!
We recently updated to 1.9.0 but it looks like we lost support for iOS 12.x.
We used to have this code with MOE 1.7.4:
AVAudioSession.sharedInstance().setCategoryWithOptionsError(
AVFoundation.AVAudioSessionCategoryPlayAndRecord(),
AVAudioSessionCategoryOptions.DefaultToSpeaker,
null
When we upgraded to MOE 1.9.0 then we needed to update the code above to:
AVAudioSession.sharedInstance().setCategoryWithOptionsError(
AVFAudio.AVAudioSessionCategoryPlayAndRecord(),
AVAudioSessionCategoryOptions.DefaultToSpeaker,
null
);
This code fails on 12.4 with this:
2022-04-07 19:54:04.842 SurveyCTO Collect[29663:8003789] *** Terminating app due to uncaught exception 'java.lang.ExceptionInInitializerError', reason: 'java.lang.ExceptionInInitializerError
at com.surveycto.collect.ios.application.Collect.<init>(Collect.java:139)
at com.surveycto.collect.ios.application.Collect.getInstance(Collect.java:154)
at com.surveycto.collect.ios.Main.applicationDidFinishLaunchingWithOptions(Main.java:45)
at apple.uikit.c.UIKit.UIApplicationMain(Native Method)
at com.surveycto.collect.ios.Main.main(Main.java:28)
at java.lang.reflect.Method.invoke(Native Method)
at org.moe.IOSLauncher.main(IOSLauncher.java:34)
Caused by: java.lang.RuntimeException: Failed to register class apple.avfaudio.AVAudioSession
at org.moe.natj.general.NatJ.register(NatJ.java:270)
at apple.avfaudio.AVAudioSession.<clinit>(AVAudioSession.java:37)
... 7 more
So, does this mean that we can no longer run the app in iOS 12.4?