-
Notifications
You must be signed in to change notification settings - Fork 1
SatheeshJM/Notifications-Plugin-for-Gideros-Studio
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
**Local Notifications for Gideros Studio iPhone plugin **
If you see any mistakes, misconceptions or possible enhancements, please let
SatheeshJM know on the Gideros Forum
To set up the plugin:
1. Add UINotifications.mm in Xcode to the GiderosiPhonePlayer project.
2. Connect the iPhone and build and run the GiderosiPhonePlayer app on the iPhone
3. Create a new project Gideros Studio and add the following code
require "notifications";
notifications.scheduleLocalNotification
{
alertBody = "Hello Gideros!!",
hasAction = true,
alertAction = "Check It Out!",
badge = 12,
timeInterval = {seconds =5,minutes=1,hours=1,days=1},
--time = "2012-06-05 20:42:32 +0530",
}
4. In Gideros Studio, under Player Menu > Player Settings, untick Localhost, and enter the IP address on your iPhone (wireless connection is needed)
5. Run the program in Gideros Studio.
6. You should have both the debug console open in Xcode, and the Output console in Gideros Studio. Messages from the plugin will be printed in the Xcode console, and messages from Lua will be printed in the Gideros Studio console
----_AVAILABLE FUNCTIONS-------
notifications.cancelLocalNotification
notifications.cancelAllLocalNotifications
notifications.getBadgeNumber
notifications.setBadgeNumber
notifications.scheduleLocalNotification
notifications.getScheduledLocalNotifications
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published