Closed tattuu closed 8 months ago
In lib/src/ios_alarm.dart
setAlarm(), it stops at line 59.
The following code
throw AlarmException(e.toString());
Hi @tattuu
Thanks for all the details. It is true that I recently made some changes regarding the asset audio import. I will investigate on that really soon.
Hi @tattuu
Let's say this is the audio path stored locally on your iPhone:
/var/mobile/Containers/Data/Application/DB2234AF-EABE-4188-9F4A-0123456789/Documents/Audios/ringtone.mp3
You have to know that in the DB2234AF-EABE-4188-9F4A-0123456789
part is the Application's UUID. But each time you delete and reinstall or just update the app, a new UUID will be generated. Then it is safer to give as assetAudioPath
just the relative path, which is in this case: Audios/ringtone.mp3
. This way, it will always be true for each "versions" of the app.
Let me know if this is the reason of your errors.
Hi @tattuu
Let's say this is the audio path stored locally on your iPhone:
/var/mobile/Containers/Data/Application/DB2234AF-EABE-4188-9F4A-0123456789/Documents/Audios/ringtone.mp3
You have to know that in the
DB2234AF-EABE-4188-9F4A-0123456789
part is the Application's UUID. But each time you delete and reinstall or just update the app, a new UUID will be generated. Then it is safer to give asassetAudioPath
just the relative path, which is in this case:Audios/ringtone.mp3
. This way, it will always be true for each "versions" of the app.Let me know if this is the reason of your errors.
Hello! I just checked and this is exactly the problem. Thank you
Hi @gdelataillade
I tried it with the latest version 3.0.12 and it worked fine! As you say, it seems the UUID was misbehaving.
Thanks!😊
However, I think there will be many people like me who will continue to specify absolute paths to set up local files.
Therefore, it may be a good idea to include a note in the README regarding absolute path specifications, including UUID.
Alarm plugin version 3.0.9 - 3.0.12: error 3.0.8: success
Describe the bug This error occurred suddenly.
I was using 3.0.11 successfully, but something kicked in and I started getting the error. The error occurs when locally stored audio data is set to AlarmSettings() and executed.
The following is a description of the error.
I tried it on the actual machine as well as on the simulator, but it was giving me errors. I have tried the latest version of XCode, deleted the simulator once, reinstalled it, deleted the application cache, and it still came up.
Then I dropped one version at a time and tried it, and it worked fine on 3.0.8.
So I have a feeling that the changes made between 3.0.8 and 3.0.9 are related.
To Reproduce I'm sorry, but I don't know how to reproduce this error, as I was able to use 3.0.11 fine, and then suddenly for some reason the error started appearing.
Information on flutter doctor is shown below.
Expected behavior Normal asset loading
Device info iPhone 15 Pro(simulator), iOS 17.2
Additional context I have tried everything and maybe there is a possibility that this package is not the cause.
If it is, I am sorry.