当应用程序处于关闭状态时不会触发 OneSignal 通知 [react native]

时间:2021-02-09 12:36:02

标签: ios react-native onesignal

当应用程序完全关闭(正常关闭)并在后台运行时,下面的代码会收到通知,并且仅当应用程序在后台运行时才重定向到所需的页面,但如果从完全关闭状态,“滑动应用程序”以关闭它。如果从完全关闭状态打开,我想重定向到特定屏幕。我错过了什么?

add_action( 'woocommerce_review_order_after_submit', 'add_after_checkout_button' );

function add_after_checkout_button() {
echo '<script src="https://kit.fontawesome.com/5e15d2f246.js" crossorigin="anonymous"></script>
<div class="row">
    <div class="column">
        <i class="fas fa-lock"></i>
        SSL encrypted payment
    </div>
    <div class="column">
        <i class="fas fa-undo"></i>
        100% money-back guarantee
    </div>
</div>';
echo '<p class="text-under-place-order">By clicking on the purchase button, you agree to our <a href="https://www.exampledomain.com/terms-of-service/">Terms of Service</a> and <a href="https://www.exampledomain.com/privacy-policy/">Privacy Policy</a></p>';
}

0 个答案:

没有答案