How to call GameCenter related API in HelloWorldScene file?

Hi all,

As I know the only way to call obj-c in c++ is to change the file type from .cpp to .mm.
But it won’t work on Android anymore right? So if I do like that which mean the project will not be cross-platform.

any one can help on this fundamental question?