and I am getting:
Failed to find static method id of showLocalNotification
or it would simply crash (java.lang.NullPointerException: Attempt to invoke virtual method ‘android.content.Context android.app.Activity.getApplicationContext()’ on a null object reference), if I named the #define CLASS_NAME “org/cocos2dx/cpp/Cocos2dxActivity” differently.
Has anyone gotten this to work, if so. Please enlighten me what I must do!
I can now confirm I have this working. Atleast on android
Here’s what is needed to do on latest cocos2d-x:
You’ll have an AppActivity.java in the proj.android\src\org\cocos2dx\cpp folder, edit that one so it looks like this: http://pastebin.com/fXHTdXhZ
I’ll give this a whirl in xcode now for iOS devices.
i love cocos helper and i am already using it. Also embedded local notification for ios, but i want to launch the app within a week, so looking for other solutions for local notification on android.
When are you planning to launch it for android, and is there some temporary solution for android till then?