我有一个使用libgdx 1.2的应用项目。我想在其iOS和Android版本中添加Parse.com推送通知。对于使核心应用程序调用本地平台方法的常规java接口没有问题,但是我在理解如何从Java RoboVM代码中调用Parse.com SDK方法方面遇到了很多问题,例如,假设NativeMethods是我的本地方法访问接口,IOSNatives是我的iOS RoboVM实现:
public class IOSNatives implements NativeMethods
{
public void pushNotifications()
{
// how do I write the java code equivalent to this example?
// step 5 here: https://parse.com/tutorials/ios-push-notifications
}
}
我是说,第五步在这里:https://parse.com/tutorials/ios-push-notifications。然后我还需要关于步骤1-4的一些提示...
我已经在stackoverflow上搜索了类似的问题,但我只找到了一个:Is there a way for push notifications in libGDX (Android and iOS projects)?,但它并没有提供我需要的答案。