Discuz! Board

 

 

Search
Discuz! Board Forum Integration Questions Use c++/jave code with your engine
View: 728|Reply: 5
go

Use c++/jave code with your engine

Rank: 2

Post on 2011-10-21 05:58 |All posts
Hi,
I think it's not possible now but will it possible to add c++ or java code which will be built with your engine ?
I need it to manage mobile notifications and google analytics.

Regards,
Jonathan

Rank: 2

Post on 2011-10-21 17:10 |All posts
maybe you could use a hidden webview to do some of these things? at least GA stuff.

Rank: 2

Post on 2011-10-21 20:25 |All posts
Yes, I think it's possible for google analytics but my  big problem is to use notification mobile system.

Thanks for the tip

Rank: 4

Post on 2011-11-1 10:28 |All posts
Is it to show message in the notification bar?

There is the api:
ppy_notification(title, content, flag, icon,callback, param)

This is for using Android notification (shown on the top of the screen) when Players switch         the game to background. You need to register a “inbackground” callback
export(“inbackground”, func);
function func(){
    // do something
   
}
        Parameter:
                title: a String
                content: a String
                flag: one of NOTIFICATION_ALL , NOTIFICATION_SOUND, NOTIFICATION_VIBRATE,
                        NOTIFICATION_LIGHTS. It sets the notifying method
          icon: in Integer, 0 shows a check icon; 1 shows an exclamation icon; 2 shows error                                      icon.
                  callback: a function name, will be called when the notification is clicked (notifications                          are shown in the notification bar on the top of the screen)
                         the function must be defined as
                                function callback(id, param)
                         id is the return value of ppy_notification()
                  param: will be passed into callback
                Return:
                        An integer, an ID of this notification. You may use it in the callback

Rank: 2

Post on 2011-11-2 06:53 |All posts
Thanks, I'm going to test this function.

Rank: 2

Post on 2011-11-2 06:55 |All posts
Thanks, I'm going to test this function (it was to use Android notification (shown on the top of the screen)
Security Q&A Change Security code Change

Archiver|Comsenz Inc.

All time is GMT+8, 2013-5-22 20:48 , Processed in 0.029660 second(s), 10 queries .

Powered by Discuz! X1.5

© 2001-2010 Comsenz Inc.