DrMoriarty / godot-local-notification

Godot module for local notifications (android and iOS)
MIT License
140 stars 24 forks source link

Update getBroadcast requestCode to match tag #1

Closed FlorentFlament closed 5 years ago

FlorentFlament commented 6 years ago

The getBroadcast method was previously using a single hardcoded requestCode for every call. As a consequence, it wasn't possible to set several notifications. Each new call to showLocalNotification was updating the previous notification.

This change allows to setup several notifications by using distinct tags. One can still update a previously set notification by specifying the same tag as the one used during the previous call to showLocalNotification.

DrMoriarty commented 5 years ago

@FlorentFlament Thanks!