Why does it work on Android but not on iOS? And what's the deal with being asked to purchase again when it's supposed to be a consumable purchase? Android is fine #1560
Why does it work on Android but not on iOS? And what's the deal with being asked to purchase again when it's supposed to be a consumable purchase? Android is fine
import { Injectable } from '@angular/core';
import { Platform } from '@ionic/angular';
import 'cordova-plugin-purchase/www/store.d';
private approved1: any = (p: any) =>
{
var pay_id = p.nativePurchase['orderId'];
var id = p.nativePurchase['productId'];
var purchaseToken = p.nativePurchase['purchaseToken'];
const myProduct = this.ps.store.get(p.nativePurchase['productId']);
var price = myProduct.offers[0].pricingPhases[0].price;
var currency = myProduct.offers[0].pricingPhases[0].currency;
var platform = p.platform;
Why does it work on Android but not on iOS? And what's the deal with being asked to purchase again when it's supposed to be a consumable purchase? Android is fine
import { Injectable } from '@angular/core'; import { Platform } from '@ionic/angular'; import 'cordova-plugin-purchase/www/store.d';
private approved1: any = (p: any) => { var pay_id = p.nativePurchase['orderId']; var id = p.nativePurchase['productId']; var purchaseToken = p.nativePurchase['purchaseToken'];
const myProduct = this.ps.store.get(p.nativePurchase['productId']); var price = myProduct.offers[0].pricingPhases[0].price; var currency = myProduct.offers[0].pricingPhases[0].currency; var platform = p.platform;
p.finish(); this.ps.store.off(this.approved1); ... }