Disable sending crypto on iOS per App Store review guideline 3.1.5

master
Skylar Ittner 2 years ago
parent 70c100a8ac
commit ebe76f23c0

@ -490,6 +490,30 @@ function showPaymentRequestQRCode() {
}
$("#app").on("click", "#sendCryptoOpenPopupBtn", function () {
if (platform_type == "cordova") {
if (cordova.platformId == "ios") {
app.dialog.create({
title: "Switch to Web Version",
text: "Apple doesn't allow this feature on the App Store. Tap Continue to launch the web version of this app instead, which is allowed to send crypto. We're sorry for the inconvenience.",
buttons: [
{
text: "Continue",
bold: true,
keyCodes: [13],
onClick: function () {
openExternalBrowser("https://app.helena.express/?startpage=crypto");
}
},
{
text: "Cancel",
color: "red"
}
]
}).open();
return;
}
}
app.popup.open("#sendCryptoPopup");
if (walletPubKeyRegex.test($("#walletAddress").text())) {
setupFiatConversion($("#walletAddress").text());
} else {

@ -31,7 +31,7 @@
<div class="row justify-content-center">
<div class="col-100 medium-50 large-30">
<div class="block">
<div class="button hapticbtn button-fill popup-open" data-popup="#sendCryptoPopup" id="sendCryptoOpenPopupBtn"><i class="fa-solid fa-inbox-out"></i> Send</div>
<div class="button hapticbtn button-fill popup-open" id="sendCryptoOpenPopupBtn"><i class="fa-solid fa-inbox-out"></i> Send</div>
</div>
<div class="block">
<div class="button hapticbtn button-fill popup-open" data-popup="#receiveCryptoPopup" id="receiveCryptoOpenPopupBtn"><i class="fa-solid fa-inbox-in"></i> Receive</div>

Loading…
Cancel
Save