Sonar Local Notification do nothing in Android

  • jjeori_jjang
    Likes 0

    Problem Description

    for cocos2d-x(c++) & android

    I used below code in AppDelegate.cpp

    void AppDelegate::applicationDidEnterBackground() {
        SonarCocosHelper::Notifications::scheduleLocalNotification(0,"test","now",1234);
        Director::getInstance()->stopAnimation();
        }

    but in my android phone, noting was happened

    so, i checked your SonarFrameworks.cpp

        void Notifications::scheduleLocalNotification( float delay, cocos2d::__String textToDisplay, cocos2d::__String notificationTitle, cocos2d::__String notificationAction , int notificationTag )
        {
        #if(CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
        #elif(CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
            #if SCH_IS_NOTIFICATIONS_ENABLED == true
            IOSCPPHelper::scheduleLocalNotification( delay, textToDisplay, notificationTitle, notificationAction ,notificationTag);
        #endif
        #endif
        }

    Where is code for android platform??
    is it work without any code? or something i misunderstood??


  • Sonar Systems admin
    Likes 0

    It isn’t implemented for Android ATM.

Login to reply