gdelataillade / alarm

A Flutter plugin to easily manage alarms on iOS and Android
https://pub.dev/packages/alarm
MIT License
132 stars 86 forks source link

No Sound on IOS only vibrate #238

Closed hafidzaini closed 2 months ago

hafidzaini commented 2 months ago

Alarm plugin version 3.1.5 Dart version 3.4.4 Flutter version 3.22.3 CocoaPods version 1.15.2 Real device debug xCode Version 15.4

Describe the bug No sound on IOS, only vibrate.

App on background :

when notification tap and open the app:

use default alarm setting

final alarmSettings = AlarmSettings(
  id: 42,
  dateTime: dateTime,
  assetAudioPath: 'assets/alarm.mp3',
  loopAudio: true,
  vibrate: true,
  volume: 0.8,
  fadeDuration: 3.0,
  notificationTitle: 'This is the title',
  notificationBody: 'This is the body',
  enableNotificationOnKill: Platform.isIOS,
);
hafidzaini commented 2 months ago

Screenshot 2024-09-15 at 7 38 10 PM

solved by checking on "Audio, AirPlay, And Picture in Picture" on Signing & Capability -> Background Modes