localnotifications

Stencyl Local Notification Extension (Openfl)

For Stencyl 3.4 and above

Stencyl extension for “Local Notification” on iOS and Android. This extension allows you to easily integrate Local Notification on your Stencyl game / application. (http://www.stencyl.com)

Important!!

This Extension Required the Toolset Extension Manager https://byrobingames.github.io

notificationtoolset

Main Features

How to Install

To install this Engine Extension, go to the toolset (byRobin Extension Mananger) in the Extension menu of your game inside Stencyl.
toolsetextensionlocation
Select the Extension from the menu and click on “Download”

If you not have byRobin Extension Mananger installed, install this first.
Go to: https://byrobingames.github.io

Documentation and Block Examples

Create your notifications in the Toolset manager.
localnotificationcreate
NotifId: Give your notification an id. (Must be unique number between 0 and 63)
Title: Your notification Title
Message: Your notification Message
Trigger after(in seconds): Time when the system should trigger the notification after the Game is open for the first time.
Repeat Every: The interval at which to reschedule the notification.
Value can be set to no repeat, Minute, Hour, Day, Week or Year


Schedule Local notifications
localnotificationschedule


Cancel notifications with NotifID
localnotificationcancelschedulenr


Cancel all notifications
localnotificationcancelscheduleall


Set icon badge number to (deprecated in Android Version 8.0 > Will be set automatically when Notification is received)
localnotificationsetbadge


Increase icon badge number by (deprecated in Android Version 8.0 > Will be set automatically when Notification is received)
localnotificationincreasebadge


Decrease icon badge number by (deprecated in Android Version 8.0 > Will be set automatically when Notification is received)
localnotificationsetbadge

Version History

Submitting a Pull Request

This software is opensource.
If you want to contribute you can make a pull request

Repository: https://github.com/byrobingames/localnotifications

Need help with a pull request?
https://help.github.com/articles/creating-a-pull-request/

ANY ISSUES?

Add the issue on GitHub
Repository: https://github.com/byrobingames/localnotifications/issues

Need help with creating a issue?
https://help.github.com/articles/creating-an-issue/

paypal

License

Author: Robin Schaafsma

The MIT License (MIT)

Copyright (c) 2014 byRobinGames http://www.byrobin.nl

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.