我想在 Google AppEngine 上部署 FCM XMPP 应用程序。我正在使用这个库https://github.com/thelong1EU/fcmxmppserver但我是这个后端的新手,所以我需要一些帮助。我设法部署它,但它没有运行。我不知道如何让 AppEngine 调用这里的主要功能:
public class EntryPoint {
public static void main(String[] args) {
final String fcmProjectSenderId = senderID;
final String fcmServerKey = key;
CcsClient ccsClient = CcsClient.prepareClient(fcmProjectSenderId, fcmServerKey, false);
try {
ccsClient.connect();
} catch (XMPPException e) {
e.printStackTrace();
}
}
}
如果我只运行这个功能,它一切正常,但部署时它不会启动。我错过了什么?