kobakei / CCLocalNotification

Local notification sample on cocos2d-x

Repository from Github https://github.comkobakei/CCLocalNotificationRepository from Github https://github.comkobakei/CCLocalNotification

CCLocalNotification

About

Local notification sample on cocos2d-x 3.x

Files

common

  • Classes/LocalNotification.h

iOS

  • Classes/LocalNotification_iOS.mm

Android

  • Classes/LocalNotification_Android.cpp
  • proj.android/src/org/cocos2dx/cpp/Cocos2dxActivity.java
  • proj.android/src/org/cocos2dx/cpp/LocalNotificationReceiver.java
  • proj.android/AndroidManifest.xml

and you need Android Support Library v4.

Usage

// Show notification after 15 seconds
LocalNotification::show("Hello world!", 15, 1);

// Cancel notification with tag 1
LocalNotification::cancel(1);

License

This software is licensed under Apache License 2.0

About

Local notification sample on cocos2d-x

License:Apache License 2.0


Languages

Language:C 46.5%Language:C++ 45.0%Language:Objective-C 3.0%Language:JavaScript 2.1%Language:Lua 1.5%Language:Python 0.9%Language:Java 0.7%Language:Shell 0.1%Language:CSS 0.0%Language:Perl 0.0%