[iOS] Local Notifications and Alerts [DEPRECATED]

Abliblablobla

  • *
  • Posts: 524
Local Notifications and Alerts for iOS Devices

Hi everyone!

I think that local notifications are very important because they remember to users that the developer would be very happy if they play your game once more. So I have created an extension that lets you schedule notifications that will be displayed even if your app has been put in the background.

Blocks

 - Schedule new local notification.
 - Set icon badge number to
 - Increase icon badge number by
 - Decrease icon badge number by
 - Show alert with title and message

This extension is OpenFL and iOS 7 ready.

(Update: Download the 64-bit compatible version)

(Update 2: This is now deprecated in favor of the new version, which works on iOS and Android. http://community.stencyl.com/index.php/topic,42719.0.html)

« Last Edit: July 23, 2015, 12:41:26 am by Jon »
.: BuruBuru :.

Joraanpe

  • Posts: 288
OMGGG finally!!! thanks for this!! gonna test it for sure, keep it up!!!


JohnGuySmith

  • Posts: 56
NICE! thanks sooooooo much
Zed20 Studios...Check out our apps in the App Store!


mbuist

  • Posts: 252
Are you working on an android one to
Visit my arcade site - http://www.tincubegames.com/
Read all about my games at - http://www.tincubemedia.nl
Please follow Tincube Media on Facebook - http://www.facebook.com/tincubemedia

As a final touch.. GOD created the Dutch

Stevetheipad

  • Posts: 1304
What if you want to notify when the app isn't open but you aren't sure when it will need to be notified exactly? Like news alerts.

This sounds great! I really want to try this could you guide me on how to open up the block?

Vectrex71

  • *
  • Posts: 534
YES ! Great !! Great Great Great !!!

hodragon

  • Posts: 79
Hello dear,

This Extension is Cool!

But, 2Byte Language is not support.

Please Support to 2Byte Language.  :'(
Indie Game Developer.
(I do not speak English well.)

MurrayZero

  • Posts: 154
This extension is not working well: it is generating a lot of notifications in a short time.

Jon

  • *
  • Posts: 17516
Starting February 1st, Apple requires all iOS apps to include 64-bit support. We've added this support to the core toolset and extensions, but users using your extension will need an updated version from you to continue using your extension in their games.

Please see the following forum topic for instructions on how to update your extension. All questions regarding the upgrade should be posted on that topic. Thanks!

http://community.stencyl.com/index.php/topic,38276.0.html

Max Finch

  • *
  • Posts: 2180
Updated to support 64 bit.

designpeg

  • Posts: 618
Hi, when I try to include this extension it fails to build, with  'Unknown identifier : nme'. I'm using the latest 64bit version.


jar:file:/Applications/Stencyl-full/sw.jar!/res/logview4j/images/error.gif   false   ERROR   1423214631773000454   stencyl.sw.util.StreamGobbler   [openfl] ** BUILD FAILED **
jar:file:/Applications/Stencyl-full/sw.jar!/res/logview4j/images/info.gif   false   INFO   1423214631770000453   stencyl.sw.util.StreamGobbler   [openfl] make: *** [build-haxe-armv7] Error 1
jar:file:/Applications/Stencyl-full/sw.jar!/res/logview4j/images/info.gif   false   INFO   1423214631767000452   stencyl.sw.util.StreamGobbler   [openfl] /Users/markbawden/Dropbox/STENCYL_DEVELOPMENT/stencylworks/engine-extensions/notifications/Notifications.hx:24: characters 35-50 : Unknown identifier : nme
jar:file:/Applications/Stencyl-full/sw.jar!/res/logview4j/images/info.gif   false   INFO   1423214631767000451   stencyl.sw.util.StreamGobbler   [openfl] /Users/markbawden/Dropbox/STENCYL_DEVELOPMENT/stencylworks/engine-extensions/notifications/Notifications.hx:23: characters 51-66 : Unknown identifier : nme
jar:file:/Applications/Stencyl-full/sw.jar!/res/logview4j/images/info.gif   false   INFO   1423214631767000450   stencyl.sw.util.StreamGobbler   [openfl] /Users/markbawden/Dropbox/STENCYL_DEVELOPMENT/stencylworks/engine-extensions/notifications/Notifications.hx:22: characters 50-65 : Unknown identifier : nme
jar:file:/Applications/Stencyl-full/sw.jar!/res/logview4j/images/info.gif   false   INFO   1423214631767000449   stencyl.sw.util.StreamGobbler   [openfl] /Users/markbawden/Dropbox/STENCYL_DEVELOPMENT/stencylworks/engine-extensions/notifications/Notifications.hx:21: characters 51-66 : Unknown identifier : nme
jar:file:/Applications/Stencyl-full/sw.jar!/res/logview4j/images/info.gif   false   INFO   1423214631766000448   stencyl.sw.util.StreamGobbler   [openfl] /Users/markbawden/Dropbox/STENCYL_DEVELOPMENT/stencylworks/engine-extensions/notifications/Notifications.hx:20: characters 51-66 : Unknown identifier : nme
jar:file:/Applications/Stencyl-full/sw.jar!/res/logview4j/images/info.gif   false   INFO   1423214631766000447   stencyl.sw.util.StreamGobbler   [openfl] /Users/markbawden/Dropbox/STENCYL_DEVELOPMENT/stencylworks/engine-extensions/notifications/Notifications.hx:19: characters 44-59 : Unknown identifier : nme

Max Finch

  • *
  • Posts: 2180
Yes it's because I just modified the extension to generate a 64 bit binary. I didn't know Stencyl or Openfl made changes to it's system. I'll see if I can fix this.


EDIT: Try this new build. I would test it but I don't have the time today.

Justin

  • *
  • Posts: 4070
The nme thing is something that shouldn't be happening, and I can't quite figure out why it does. When stencyl builds a project, it's supposed to remap any "nme" reference to "openfl".

designpeg, did did you overwrite Stencyl in your Applications folder? If you did, could you try installing Stencyl again, but deleting the old copy first? I don't know if that will help, just a wild guess.

For Live Support: Join our discord channel and ping me @justin.