When I use my app on mobile, my app closes because I am automatically directed to the Telegram wallet when TX starts. That's why I can't send the following requests, the code stays there. How do I solve this? Since the app is closed on mobile, this only happens on mobile, there is no problem on the web.
Nov 16, 2023, 11:49 AM
try {
const tx = await tonConnectUI.sendTransaction(myTransaction);
console.log("tx:", tx);
const bocCell = tonweb.boc.Cell.oneFromBoc(tonweb.utils.base64ToBytes(tx.boc));
const hash = tonweb.utils.bytesToBase64(await bocCell.hash());
console.log("Transaction Hash:", hash);
const explorerUrl = https://tonscan.org/tx/by-msg-hash/ + hash;
try {
await addOrdHistory(
accessToken,
id,
package_name,
package_buying_price,
payment_method,
payment_detail,
package_credit
);
const tx = await tonConnectUI.sendTransaction(myTransaction);
console.log("tx:", tx);
const bocCell = tonweb.boc.Cell.oneFromBoc(tonweb.utils.base64ToBytes(tx.boc));
const hash = tonweb.utils.bytesToBase64(await bocCell.hash());
console.log("Transaction Hash:", hash);
const explorerUrl = https://tonscan.org/tx/by-msg-hash/ + hash;
try {
await addOrdHistory(
accessToken,
id,
package_name,
package_buying_price,
payment_method,
payment_detail,
package_credit
);
please help
Help !!!
Nov 17, 2023, 11:41 AM
Then don't use TX?
Nov 17, 2023, 1:59 PM
Tx succesfully. since my app is closed, I can not send other process for example in this code
I can not see any process after tx line. because app is closed
in mobile
opened telegram wallet, my app is closed
Nov 17, 2023, 2:06 PM
:| I have to look over it when I'm home. I try to write you when I find a mistake
Nov 17, 2023, 2:07 PM
If you look, I will be soo happyyyy :)
Nov 17, 2023, 2:12 PM
Is your app closed or just paused (don't know Android internals, actually)?
Probably the issue is in your app's manifest.
Probably the issue is in your app's manifest.
Nov 17, 2023, 2:13 PM
closed. What I change in manifest?
Nov 17, 2023, 2:14 PM