# Multiple local notifications

**URL:** <https://forums.fusetools.com/t/multiple-local-notifications/2967>\
**Category:** Bug Reports\
**Created:** [August 2, 2017, 1:31am UTC](https://forums.fusetools.com/t/multiple-local-notifications/2967 "2017-08-02T01:31:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![LuisRodriguezLD](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/luisrodriguezld/32/616_2.png) [@LuisRodriguezLD](https://forums.fusetools.com/u/LuisRodriguezLD)\
**Post date:** [August 2, 2017, 1:31am UTC](https://forums.fusetools.com/t/multiple-local-notifications/2967/1 "2017-08-02T01:31:26Z")

</div>

Fuse 1.1.1 Build 13893  
Mac OS 10.12.6

I’ve been scheduling local notifications for a while but lately I’ve seen multiple notifications coming in at the same time. This only happens in Android devices.

```auto
<App>
	<JavaScript>
		var LocalNotify = require("FuseJS/LocalNotifications");
		var Lifecycle = require('FuseJS/Lifecycle');

		Lifecycle.on("enteringBackground", function() {
		    LocalNotify.later(10, "Example", "Notification 1", "Payload", true);
		    LocalNotify.later(20, "Example", "Notification 2", "Payload", true);
		    LocalNotify.later(30, "Example", "Notification 3", "Payload", true);
		    LocalNotify.later(40, "Example", "Notification 4", "Payload", true);
		    LocalNotify.later(50, "Example", "Notification 5", "Payload", true);
		    LocalNotify.later(60, "Example", "Notification 6", "Payload", true);
		});

		Lifecycle.on("enteringForeground", function() {
		    LocalNotify.clearAllNotifications();
		});
	</JavaScript>
	<Text Alignment="Center" Value="Hello World!!" />
</App>

```

The previous code should send 6 notifications with 10 seconds in between. This is ok in iOS.  
In android some of them stack together delivering:

_Not1_ in 10 Seconds

_Not2_ with _Not3_ in 30 Seconds

_Not4_, _Not5_ and _Not6_ in 60 Seconds.

I am pretty sure this wasn’t happening before.

---

<div class="post-metadata">

**Author:** ![Baggers](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/baggers/32/665_2.png) [@Baggers](https://forums.fusetools.com/u/Baggers)\
**Post date:** [August 3, 2017, 8:24am UTC](https://forums.fusetools.com/t/multiple-local-notifications/2967/2 "2017-08-03T08:24:03Z")

</div>

Hi Luis, thanks for posting this  
The code for local notifications hasnt changed in many releases. Its possible that google has tweaked their notification scheduling to checking every 30 seconds (or some other means of batching).

Maybe we need to look into exposing notification channels [https://developer.android.com/preview/features/notification-channels.html](https://developer.android.com/preview/features/notification-channels.html)

---

<div class="post-metadata">

**Author:** ![LuisRodriguezLD](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/luisrodriguezld/32/616_2.png) [@LuisRodriguezLD](https://forums.fusetools.com/u/LuisRodriguezLD)\
**Post date:** [August 3, 2017, 2:20pm UTC](https://forums.fusetools.com/t/multiple-local-notifications/2967/3 "2017-08-03T14:20:56Z")

</div>

That sounds possible, I tested all the way to 0.30 where it works better but still no luck, the first 2/3 are fine but the rest come in pairs. I found this maybe it’s related (?) [https://www.fusetools.com/downloads/0.29.0.8396#pushnotifications](https://www.fusetools.com/downloads/0.29.0.8396#pushnotifications)

Either way, is there a workaround or should I just stick to two local notifications?

---

<div class="post-metadata">

**Author:** ![Baggers](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/baggers/32/665_2.png) [@Baggers](https://forums.fusetools.com/u/Baggers)\
**Post date:** [August 10, 2017, 7:40am UTC](https://forums.fusetools.com/t/multiple-local-notifications/2967/4 "2017-08-10T07:40:49Z")

</div>

I dont have a fuse specific workaround, sorry. I’ll add ‘channels’ to the wishlist though
