你能在没有服务器端的代号 one 中实现自动续订订阅吗
Can you implement autorenewing subscriptions in codenameone without a server side
我已遵循自动续订应用程序订阅文档。但是,我正在构建的应用程序目前没有服务器端。我没有看到是否可以在根本不需要数据库的情况下创建应用程序
我试过简单地调用 Purchase.subscribe 方法而不保存到数据库
public void start() {
Form hi = new Form("Hello World");
//create receiptes store
Purchase.getInAppPurchase().setReceiptStore(createReceieptsStore());
//create a button to purchase the world
Button buyWorld = new Button("Buy World");
buyWorld.addActionListener(e -> {
if (Purchase.getInAppPurchase().isSubscribed(SKU)) {
Dialog.show("Cant Buy It", "You Own It", "OK", null);
} else {
Purchase.getInAppPurchase().subscribe(SKU);
}
});
hi.addComponent(buyWorld);
hi.show();
}
我收到有关需要实施的收据存储提取和提交方法的错误
应该可以在没有服务器的情况下实现订阅,但在任何已获得 root 权限的 Android 设备上破解此功能非常容易。
我已遵循自动续订应用程序订阅文档。但是,我正在构建的应用程序目前没有服务器端。我没有看到是否可以在根本不需要数据库的情况下创建应用程序
我试过简单地调用 Purchase.subscribe 方法而不保存到数据库
public void start() {
Form hi = new Form("Hello World");
//create receiptes store
Purchase.getInAppPurchase().setReceiptStore(createReceieptsStore());
//create a button to purchase the world
Button buyWorld = new Button("Buy World");
buyWorld.addActionListener(e -> {
if (Purchase.getInAppPurchase().isSubscribed(SKU)) {
Dialog.show("Cant Buy It", "You Own It", "OK", null);
} else {
Purchase.getInAppPurchase().subscribe(SKU);
}
});
hi.addComponent(buyWorld);
hi.show();
}
我收到有关需要实施的收据存储提取和提交方法的错误
应该可以在没有服务器的情况下实现订阅,但在任何已获得 root 权限的 Android 设备上破解此功能非常容易。