在执行推送通知的订阅脚本后,如何进行重定向?
<script>
var OneSignal = window.OneSignal || [];
OneSignal.push(function() {
OneSignal.init({
appId: "*****-*****-*****-*****-*****",
});
});
</script>
答案 0 :(得分:0)
您可以试试吗?
OneSignal.push(["init", {
/* Your other init options here */
welcomeNotification: {
"title": "My Custom Title",
"message": "Thanks for subscribing!",
// "url": "" /* Provide your URL */
}}]);