App works perfectly in test mode and from web publishing to the desktop to display a list from a custom action return variable, but the list does not show on the iPhone or iPad from Safari or Chrome. The action code is from flutter_tts to display a list of voices from a getVoices method.
getVoices Code:
import 'package:flutter_tts/flutter_tts.dart';
Future<List<String>> getVoices() async {
// Add your function code here!
FlutterTts flutterTts = FlutterTts();
List<dynamic> voices = await FlutterTts().getVoices;
List<String> voiceNames = [];
for (var voice in voices) {
if (voice['name'].contains("United States")) {
voiceNames.add(voice['name'].substring(10));
}
}
return voiceNames;
}