Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Ionic 2 LocalNotifications not working on IOS

$
0
0

@Colo9311 wrote:

I have an Ionic 2 app, that uses LocalNotifications plugin.

On android works very well. It has been in production for 2 months and now we need the ios version.
This is the code:

this.localNotifications.schedule({
    id: 1,
    text: '¡Hora de meditar!',
    at: scheduleDate,
    sound: this.isAndroid? 'file://audio/sound.mp3' : 'file://audio/sound.caf',
    every: "day"
});

This is used as a reminder. When the user activates the reminder, what he really does is to schedule a notification that is repeated every day at that time.

On Android all ok, no problems.

On IOS when you activate the reminder, it shows a black screen and the app closes, without saying anything. Is there any way to debug this? Since the localNotifications.schedule() method does not even return a promise, returns void.

Thank you very much in advance!!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>